weapons need to be centered
This commit is contained in:
parent
e6eb43ada8
commit
93a5ca6777
|
@ -200,7 +200,7 @@ public class Cannon extends SiegeWeapon
|
||||||
getEntity("Filler_1").setPassenger(slime);
|
getEntity("Filler_1").setPassenger(slime);
|
||||||
addEntity(slime, "PLAYERMOUNT");
|
addEntity(slime, "PLAYERMOUNT");
|
||||||
|
|
||||||
ArmorStand armorStand = _location.getWorld().spawn(_location, ArmorStand.class);
|
ArmorStand armorStand = _location.getWorld().spawn(_location.clone().add(.5, 0, .5), ArmorStand.class);
|
||||||
|
|
||||||
UtilEnt.setFakeHead(armorStand, true);
|
UtilEnt.setFakeHead(armorStand, true);
|
||||||
armorStand.teleport(_location);
|
armorStand.teleport(_location);
|
||||||
|
|
|
@ -196,7 +196,7 @@ public class Catapult extends SiegeWeapon
|
||||||
|
|
||||||
addEntity(filler, "Filler_1");
|
addEntity(filler, "Filler_1");
|
||||||
|
|
||||||
ArmorStand mount = _location.getWorld().spawn(_location, ArmorStand.class);
|
ArmorStand mount = _location.getWorld().spawn(_location.clone().add(.5, 0, .5), ArmorStand.class);
|
||||||
|
|
||||||
mount.setVisible(false);
|
mount.setVisible(false);
|
||||||
mount.setGravity(false);
|
mount.setGravity(false);
|
||||||
|
|
Loading…
Reference in New Issue