Remove entity just after jump
This commit is contained in:
parent
aa9e83ad56
commit
823c06c4db
1 changed files with 2 additions and 7 deletions
|
@ -131,11 +131,7 @@ public class EntityJump extends Entity {
|
||||||
unlockWorlds();
|
unlockWorlds();
|
||||||
unforceChunks();
|
unforceChunks();
|
||||||
|
|
||||||
try {
|
worldObj.removeEntity(this);
|
||||||
if (!this.fromSpace && !this.toSpace) { worldObj.removeEntity(this); }
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -144,8 +140,7 @@ public class EntityJump extends Entity {
|
||||||
|
|
||||||
if (FMLCommonHandler.instance().getEffectiveSide().isClient())
|
if (FMLCommonHandler.instance().getEffectiveSide().isClient())
|
||||||
return;
|
return;
|
||||||
if (!on/* || worldObj.getBlockId(xCoord, yCoord, zCoord) != WarpDrive.WARP_CORE_BLOCKID */) {
|
if (!on) {
|
||||||
unlockWorlds();
|
|
||||||
worldObj.removeEntity(this);
|
worldObj.removeEntity(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue