mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-04 06:28:55 +00:00
.
This commit is contained in:
1 parent
1e28214ce9
commit
7c553bb420
4 files changed
+3
-3
No files matched your search
Binary file not shown.
Binary file not shown.
@@ -87,10 +87,10 @@ public class ClickHandler implements Listener {
|
|||||||
if (created) {
|
if (created) {
|
||||||
item.setAmount(item.getAmount() - 1);
|
item.setAmount(item.getAmount() - 1);
|
||||||
thePlayer.getInventory().setItemInMainHand(item);
|
thePlayer.getInventory().setItemInMainHand(item);
|
||||||
thePlayer.sendMessage("Cannon spawned!");
|
thePlayer.sendMessage("Equipment spawned!");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
thePlayer.sendMessage("Cannon could not be spawned, is it enabled?");
|
thePlayer.sendMessage("Equipment could not be spawned, is it enabled?");
|
||||||
}
|
}
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ public class SiegeEquipment implements Cloneable {
|
|||||||
public SiegeEquipment clone() throws CloneNotSupportedException {
|
public SiegeEquipment clone() throws CloneNotSupportedException {
|
||||||
return (SiegeEquipment)super.clone();
|
return (SiegeEquipment)super.clone();
|
||||||
}
|
}
|
||||||
public Boolean Enabled = false;
|
public Boolean Enabled = true;
|
||||||
public UUID EntityId;
|
public UUID EntityId;
|
||||||
public Entity Entity;
|
public Entity Entity;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user