Reuse ItemInWorldManager, and stop applying ability changes. Fixes BUKKIT-1811

This commit is contained in:
feildmaster 2012-07-09 18:07:53 -05:00
parent 08740d7f91
commit cf9544c1d9

View File

@ -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
}