aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/detrav/gui/textures
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-08-30 17:31:24 +0200
committerGitHub <noreply@github.com>2024-08-30 17:31:24 +0200
commit59fbe6b43fb455c546064c554da576f10e364bbe (patch)
treea8881bebec2a461f632af74920146e351fdc36e6 /src/main/java/com/detrav/gui/textures
parentf0129bff91127286a06d707056ec8ad4c02309ff (diff)
downloadGT5-Unofficial-59fbe6b43fb455c546064c554da576f10e364bbe.tar.gz
GT5-Unofficial-59fbe6b43fb455c546064c554da576f10e364bbe.tar.bz2
GT5-Unofficial-59fbe6b43fb455c546064c554da576f10e364bbe.zip
Spotless apply for branch mergeDetrav for #2998 (#2999)
spotlessApply Co-authored-by: GitHub GTNH Actions <>
Diffstat (limited to 'src/main/java/com/detrav/gui/textures')
-rw-r--r--src/main/java/com/detrav/gui/textures/DetravMapTexture.java42
1 files changed, 19 insertions, 23 deletions
diff --git a/src/main/java/com/detrav/gui/textures/DetravMapTexture.java b/src/main/java/com/detrav/gui/textures/DetravMapTexture.java
index 01c570d5a1..1659b9bffc 100644
--- a/src/main/java/com/detrav/gui/textures/DetravMapTexture.java
+++ b/src/main/java/com/detrav/gui/textures/DetravMapTexture.java
@@ -51,14 +51,14 @@ public class DetravMapTexture extends AbstractTexture {
}
} else if (packet.ptype == 2) {
final short fluidId = packet.map[i][j].get((byte) 1),
- fluidSize = packet.map[i][j].get((byte) 2);
+ fluidSize = packet.map[i][j].get((byte) 2);
final String name = packet.metaMap.get(fluidId);
// Variables used to locate within a chunk.
final int k = (i % 16), l = (j % 16);
if (((k + l * 16) * 3) < (fluidSize + 48)
- && (selected.equals("All") || selected.equals(name))) {
+ && (selected.equals("All") || selected.equals(name))) {
image.setRGB(i, j, packet.ores.getOrDefault(name, Color.BLACK.getRGB()) | 0XFF000000);
}
} else if (packet.ptype == 3) {
@@ -120,29 +120,25 @@ public class DetravMapTexture extends AbstractTexture {
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(
- (double) (x),
- (double) (y + height),
- 0,
- (double) ((float) (u) * f),
- (double) ((float) (v + height) * f1));
+ (double) (x),
+ (double) (y + height),
+ 0,
+ (double) ((float) (u) * f),
+ (double) ((float) (v + height) * f1));
tessellator.addVertexWithUV(
- (double) (x + width),
- (double) (y + height),
- 0,
- (double) ((float) (u + width) * f),
- (double) ((float) (v + height) * f1));
+ (double) (x + width),
+ (double) (y + height),
+ 0,
+ (double) ((float) (u + width) * f),
+ (double) ((float) (v + height) * f1));
tessellator.addVertexWithUV(
- (double) (x + width),
- (double) (y),
- 0,
- (double) ((float) (u + width) * f),
- (double) ((float) (v) * f1));
- tessellator.addVertexWithUV(
- (double) (x),
- (double) (y),
- 0,
- (double) ((float) (u) * f),
- (double) ((float) (v) * f1));
+ (double) (x + width),
+ (double) (y),
+ 0,
+ (double) ((float) (u + width) * f),
+ (double) ((float) (v) * f1));
+ tessellator
+ .addVertexWithUV((double) (x), (double) (y), 0, (double) ((float) (u) * f), (double) ((float) (v) * f1));
tessellator.draw();
}