From 61ec751ca11f5bff9ec2dd1644982d5628270004 Mon Sep 17 00:00:00 2001 From: Erik Broes Date: Sat, 14 Jan 2012 21:03:48 +0100 Subject: 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. --- src/main/java/net/minecraft/server/WorldMapHumanTracker.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main/java/net/minecraft/server/WorldMapHumanTracker.java') 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(); -- cgit v1.2.3