remove weapon teleport fix
This commit is contained in:
parent
de4568d448
commit
306e56980c
@ -251,7 +251,7 @@ public class Cannon extends SiegeWeapon
|
||||
|
||||
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.Vegetate(filler);
|
||||
@ -261,7 +261,7 @@ public class Cannon extends SiegeWeapon
|
||||
|
||||
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.Vegetate(playerMount);
|
||||
|
@ -294,12 +294,6 @@ public abstract class SiegeWeapon implements Listener
|
||||
return;
|
||||
}
|
||||
|
||||
if (UtilMath.getDecimalPoints(getEntity("WEAPON").getLocation().getX()) != .5)
|
||||
{
|
||||
ResetEntities();
|
||||
return;
|
||||
}
|
||||
|
||||
if (_inventory != null)
|
||||
{
|
||||
checkInventory();
|
||||
|
Loading…
Reference in New Issue
Block a user