remove weapon teleport fix

This commit is contained in:
NewGarbo 2016-02-23 14:44:07 +00:00
parent de4568d448
commit 306e56980c
2 changed files with 2 additions and 8 deletions

View File

@ -251,7 +251,7 @@ public class Cannon extends SiegeWeapon
private void loadEntities() private void loadEntities()
{ {
Slime filler = _location.getWorld().spawn(_location, Slime.class); Slime filler = _location.getWorld().spawn(_location.clone().add(.5, 0, .5), Slime.class);
UtilEnt.silence(filler, true); UtilEnt.silence(filler, true);
UtilEnt.Vegetate(filler); UtilEnt.Vegetate(filler);
@ -261,7 +261,7 @@ public class Cannon extends SiegeWeapon
addEntity(filler, "Filler_1"); addEntity(filler, "Filler_1");
Slime playerMount = _location.getWorld().spawn(_location, Slime.class); Slime playerMount = _location.getWorld().spawn(_location.clone().add(.5, 0, .5), Slime.class);
UtilEnt.silence(playerMount, true); UtilEnt.silence(playerMount, true);
UtilEnt.Vegetate(playerMount); UtilEnt.Vegetate(playerMount);

View File

@ -294,12 +294,6 @@ public abstract class SiegeWeapon implements Listener
return; return;
} }
if (UtilMath.getDecimalPoints(getEntity("WEAPON").getLocation().getX()) != .5)
{
ResetEntities();
return;
}
if (_inventory != null) if (_inventory != null)
{ {
checkInventory(); checkInventory();