diff options
author | Erik Broes <erikbroes@grum.nl> | 2012-01-14 21:03:48 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2012-01-15 10:52:37 +0100 |
commit | 61ec751ca11f5bff9ec2dd1644982d5628270004 (patch) | |
tree | 8829269e1c5807b55566d367bec5ee630d5dfb1d /src/main/java/net/minecraft/server/WorldMapHumanTracker.java | |
parent | 6495eee0c9fddcce2c2aa9bf9c45118abea180c1 (diff) | |
download | craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.gz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.lz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.tar.xz craftbukkit-61ec751ca11f5bff9ec2dd1644982d5628270004.zip |
Update for 1.1_01 renames.
We know these updates (can) break plugins bypassing Bukkit. They are needed for
smooth updates however. There will be another one right before before 1.1-R1.
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldMapHumanTracker.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldMapHumanTracker.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/net/minecraft/server/WorldMapHumanTracker.java b/src/main/java/net/minecraft/server/WorldMapHumanTracker.java index dc330b81..4acd5ed3 100644 --- a/src/main/java/net/minecraft/server/WorldMapHumanTracker.java +++ b/src/main/java/net/minecraft/server/WorldMapHumanTracker.java @@ -15,10 +15,10 @@ public class WorldMapHumanTracker { private int f; private byte[] g; - final WorldMap d; + final WorldMap worldMap; public WorldMapHumanTracker(WorldMap worldmap, EntityHuman entityhuman) { - this.d = worldmap; + this.worldMap = worldmap; this.b = new int[128]; this.c = new int[128]; this.e = 0; @@ -34,8 +34,8 @@ public class WorldMapHumanTracker { public byte[] a(ItemStack itemstack) { int i; int j; - - RenderData render = this.d.mapView.render((CraftPlayer) trackee.getBukkitEntity()); // CraftBukkit + + RenderData render = this.worldMap.mapView.render((CraftPlayer) trackee.getBukkitEntity()); // CraftBukkit if (--this.f < 0) { this.f = 4; @@ -47,7 +47,7 @@ public class WorldMapHumanTracker { for (i = 0; i < render.cursors.size(); ++i) { MapCursor cursor = render.cursors.get(i); if (!cursor.isVisible()) continue; - + byte value = (byte) (((cursor.getRawType() == 0 || cursor.getDirection() < 8 ? cursor.getDirection() : cursor.getDirection() - 1) & 15) * 16); abyte[i * 3 + 1] = (byte) (value | (cursor.getRawType() != 0 && value < 0 ? 16 - cursor.getRawType() : cursor.getRawType())); abyte[i * 3 + 2] = (byte) cursor.getX(); |