mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-04 14:38:53 +00:00
.
This commit is contained in:
1 parent
b159cd799e
commit
43d65679ae
4 files changed
+7
-1
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -207,6 +207,9 @@ public class ClickHandler implements Listener {
|
|||||||
public void AimUp(Player player, float amount) {
|
public void AimUp(Player player, float amount) {
|
||||||
|
|
||||||
for (Entity ent : CrunchSiegeCore.TrackedStands.get(player.getUniqueId())) {
|
for (Entity ent : CrunchSiegeCore.TrackedStands.get(player.getUniqueId())) {
|
||||||
|
if (ent.isDead()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Location loc = ent.getLocation();
|
Location loc = ent.getLocation();
|
||||||
ArmorStand stand = (ArmorStand) ent;
|
ArmorStand stand = (ArmorStand) ent;
|
||||||
// player.sendMessage(String.format("" + loc.getPitch()));
|
// player.sendMessage(String.format("" + loc.getPitch()));
|
||||||
@@ -224,6 +227,9 @@ public class ClickHandler implements Listener {
|
|||||||
public void AimDown(Player player, float amount) {
|
public void AimDown(Player player, float amount) {
|
||||||
|
|
||||||
for (Entity ent : CrunchSiegeCore.TrackedStands.get(player.getUniqueId())) {
|
for (Entity ent : CrunchSiegeCore.TrackedStands.get(player.getUniqueId())) {
|
||||||
|
if (ent.isDead()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Location loc = ent.getLocation();
|
Location loc = ent.getLocation();
|
||||||
ArmorStand stand = (ArmorStand) ent;
|
ArmorStand stand = (ArmorStand) ent;
|
||||||
// player.sendMessage(String.format("" + loc.getPitch()));
|
// player.sendMessage(String.format("" + loc.getPitch()));
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ public class SiegeEquipment implements Cloneable {
|
|||||||
public Location location;
|
public Location location;
|
||||||
public int ModelNumberToFireAt;
|
public int ModelNumberToFireAt;
|
||||||
public Boolean CycleThroughModelsBeforeFiring = false;
|
public Boolean CycleThroughModelsBeforeFiring = false;
|
||||||
public Boolean RotateSideways = true;
|
public Boolean RotateSideways = false;
|
||||||
public Boolean RotateUpDown = true;
|
public Boolean RotateUpDown = true;
|
||||||
|
|
||||||
public Boolean HasFired = false;
|
public Boolean HasFired = false;
|
||||||
|
|||||||
Reference in new issue
Block a user