diff options
author | feildmaster <admin@feildmaster.com> | 2012-07-09 18:07:53 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-07-09 18:07:53 -0500 |
commit | cf9544c1d9b561b35dc1c2e0e6240f69707dc34b (patch) | |
tree | 9947537066e4216f67acf04db8c0a70c32cc839e | |
parent | 08740d7f91ab5a0f044439ab1212b75c15531355 (diff) | |
download | craftbukkit-cf9544c1d9b561b35dc1c2e0e6240f69707dc34b.tar craftbukkit-cf9544c1d9b561b35dc1c2e0e6240f69707dc34b.tar.gz craftbukkit-cf9544c1d9b561b35dc1c2e0e6240f69707dc34b.tar.lz craftbukkit-cf9544c1d9b561b35dc1c2e0e6240f69707dc34b.tar.xz craftbukkit-cf9544c1d9b561b35dc1c2e0e6240f69707dc34b.zip |
Reuse ItemInWorldManager, and stop applying ability changes. Fixes BUKKIT-1811
-rw-r--r-- | src/main/java/net/minecraft/server/EntityPlayer.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java index fe703847..ceab0c1b 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -107,10 +107,7 @@ public class EntityPlayer extends EntityHuman implements ICrafting { this.setPosition(position.x + 0.5, position.y, position.z + 0.5); } this.dimension = ((WorldServer) this.world).dimension; - int oldMode = itemInWorldManager.getGameMode(); - this.itemInWorldManager = new ItemInWorldManager((WorldServer) world); - this.itemInWorldManager.player = this; - this.itemInWorldManager.setGameMode(oldMode); + this.itemInWorldManager.a((WorldServer) world); // CraftBukkit end } |