Remove entity just after jump

This commit is contained in:
Disasm 2013-07-13 13:31:15 +04:00
parent aa9e83ad56
commit 823c06c4db

View file

@ -131,11 +131,7 @@ public class EntityJump extends Entity {
unlockWorlds();
unforceChunks();
try {
if (!this.fromSpace && !this.toSpace) { worldObj.removeEntity(this); }
} catch (Exception e) {
e.printStackTrace();
}
worldObj.removeEntity(this);
}
@Override
@ -144,8 +140,7 @@ public class EntityJump extends Entity {
if (FMLCommonHandler.instance().getEffectiveSide().isClient())
return;
if (!on/* || worldObj.getBlockId(xCoord, yCoord, zCoord) != WarpDrive.WARP_CORE_BLOCKID */) {
unlockWorlds();
if (!on) {
worldObj.removeEntity(this);
return;
}