aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/detrav/gui/textures/DetravMapTexture.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/detrav/gui/textures/DetravMapTexture.java')
-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();
}