diff options
author | feildmaster <admin@feildmaster.com> | 2012-10-29 22:27:11 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-10-29 23:29:40 -0400 |
commit | 856fdc2ab60d2813c815132b5e7fedfa890204f5 (patch) | |
tree | 0850c862139194f8d9f60c086d4e417def58d94b /src/main/java/net/minecraft/server | |
parent | 3047a424bb86697a73071bb2763dc27cb3d27514 (diff) | |
download | craftbukkit-856fdc2ab60d2813c815132b5e7fedfa890204f5.tar craftbukkit-856fdc2ab60d2813c815132b5e7fedfa890204f5.tar.gz craftbukkit-856fdc2ab60d2813c815132b5e7fedfa890204f5.tar.lz craftbukkit-856fdc2ab60d2813c815132b5e7fedfa890204f5.tar.xz craftbukkit-856fdc2ab60d2813c815132b5e7fedfa890204f5.zip |
Update map cursors to reflect 1.4 changes. Fixes BUKKIT-2740
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldMapHumanTracker.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/WorldMapHumanTracker.java b/src/main/java/net/minecraft/server/WorldMapHumanTracker.java index 3aeb3e96..8d05888b 100644 --- a/src/main/java/net/minecraft/server/WorldMapHumanTracker.java +++ b/src/main/java/net/minecraft/server/WorldMapHumanTracker.java @@ -54,8 +54,7 @@ public class WorldMapHumanTracker { org.bukkit.map.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 + 1] = (byte) (cursor.getRawType() << 4 | cursor.getDirection() & 15); abyte[i * 3 + 2] = (byte) cursor.getX(); abyte[i * 3 + 3] = (byte) cursor.getY(); } |