From 823c06c4db3a5ebc88f99ef1f88b81bfd1e6b379 Mon Sep 17 00:00:00 2001 From: Disasm Date: Sat, 13 Jul 2013 13:31:15 +0400 Subject: [PATCH] Remove entity just after jump --- src/cr0s/WarpDrive/EntityJump.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cr0s/WarpDrive/EntityJump.java b/src/cr0s/WarpDrive/EntityJump.java index cdd76d66..86857ddd 100644 --- a/src/cr0s/WarpDrive/EntityJump.java +++ b/src/cr0s/WarpDrive/EntityJump.java @@ -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; }