From cf9544c1d9b561b35dc1c2e0e6240f69707dc34b Mon Sep 17 00:00:00 2001 From: feildmaster Date: Mon, 9 Jul 2012 18:07:53 -0500 Subject: [PATCH] Reuse ItemInWorldManager, and stop applying ability changes. Fixes BUKKIT-1811 --- src/main/java/net/minecraft/server/EntityPlayer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java index fe703847c3..ceab0c1b35 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 }