diff --git a/bin/CrunchProjectiles/EntityProjectile.class b/bin/CrunchProjectiles/EntityProjectile.class index 4bafa94..d368795 100644 Binary files a/bin/CrunchProjectiles/EntityProjectile.class and b/bin/CrunchProjectiles/EntityProjectile.class differ diff --git a/bin/siegeCore/ClickHandler.class b/bin/siegeCore/ClickHandler.class index 5ee91b5..02f9070 100644 Binary files a/bin/siegeCore/ClickHandler.class and b/bin/siegeCore/ClickHandler.class differ diff --git a/bin/siegeCore/CrunchSiegeCore.class b/bin/siegeCore/CrunchSiegeCore.class index a97c04b..df043cc 100644 Binary files a/bin/siegeCore/CrunchSiegeCore.class and b/bin/siegeCore/CrunchSiegeCore.class differ diff --git a/bin/siegeCore/SiegeEquipment.class b/bin/siegeCore/SiegeEquipment.class index 0c22404..af03249 100644 Binary files a/bin/siegeCore/SiegeEquipment.class and b/bin/siegeCore/SiegeEquipment.class differ diff --git a/src/CrunchProjectiles/EntityProjectile.java b/src/CrunchProjectiles/EntityProjectile.java index beb8411..052b52d 100644 --- a/src/CrunchProjectiles/EntityProjectile.java +++ b/src/CrunchProjectiles/EntityProjectile.java @@ -65,6 +65,7 @@ public class EntityProjectile implements CrunchProjectile{ Arrow arr = (Arrow) arrow; arr.setDamage(8); arr.setShooter(player); + //arr.setBasePotionData(arg0); } // MiscDisguise miscDisguise = new MiscDisguise(DisguiseType.DROPPED_ITEM, Material.IRON_NUGGET); // DisguiseAPI.disguiseEntity(arrow, miscDisguise); diff --git a/src/siegeCore/ClickHandler.java b/src/siegeCore/ClickHandler.java index 2385584..630065d 100644 --- a/src/siegeCore/ClickHandler.java +++ b/src/siegeCore/ClickHandler.java @@ -566,13 +566,14 @@ public class ClickHandler implements Listener { stand.setInvisible(false); } else{ - stand.setInvisible(true); + if (equipment.AllowInvisibleStand) { + stand.setInvisible(true); + } } - return; } if (itemInHand.getType().equals(equipment.FuelMaterial)) { if (!equipment.LoadFuel(player)) { - player.sendMessage("Could not load powder."); + player.sendMessage("Could not load Fuel."); } } if (itemInHand.getType().equals(Material.FLINT)) { @@ -580,7 +581,7 @@ public class ClickHandler implements Listener { equipment.Fire(player, 6); } else { - player.sendMessage("Cannon is not loaded"); + player.sendMessage("Equipment is not loaded"); } return; } @@ -588,7 +589,7 @@ public class ClickHandler implements Listener { if (equipment.Projectiles.containsKey(itemInHand.getType()) && equipment.AmmoHolder.LoadedProjectile == 0){ equipment.AmmoHolder.LoadedProjectile = 1; equipment.AmmoHolder.MaterialName = (Material) itemInHand.getType(); - player.sendMessage("Adding projectile to cannon"); + player.sendMessage("Adding projectile to equipment"); itemInHand.setAmount(itemInHand.getAmount() - 1); } return; diff --git a/src/siegeCore/CrunchSiegeCore.java b/src/siegeCore/CrunchSiegeCore.java index d950e78..e25b6f8 100644 --- a/src/siegeCore/CrunchSiegeCore.java +++ b/src/siegeCore/CrunchSiegeCore.java @@ -334,7 +334,9 @@ public class CrunchSiegeCore extends JavaPlugin { stand.setBasePlate(false); ent.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 2000000, 1)); // stand.setSmall(true); - stand.setInvisible(true); + if (equip.AllowInvisibleStand) { + stand.setInvisible(true); + } stand.setGravity(false); //stand.setSmall(true); ent.getEquipment().setHelmet(item); diff --git a/src/siegeCore/SiegeEquipment.java b/src/siegeCore/SiegeEquipment.java index c2d6843..699bc6c 100644 --- a/src/siegeCore/SiegeEquipment.java +++ b/src/siegeCore/SiegeEquipment.java @@ -43,7 +43,7 @@ public class SiegeEquipment implements Cloneable { public int XOffset = 7; public int YOffset = 0; public int MaxFuel = 5; - public int PlacementOffsetY = 0; + public double PlacementOffsetY = 0; public float VelocityPerFuel = 0.75f; public Material FuelMaterial = Material.GUNPOWDER; public long NextShotTime = System.currentTimeMillis(); @@ -59,7 +59,7 @@ public class SiegeEquipment implements Cloneable { public Boolean RotateStandHead = true; public Boolean HasFired = false; public Boolean HasReloaded = false; - + public Boolean AllowInvisibleStand = true; public int TaskNumber; public int ReadyModelNumber; @@ -83,7 +83,7 @@ public class SiegeEquipment implements Cloneable { if (AmmoHolder.LoadedFuel == this.MaxFuel) { return true; } - if (player.getInventory().containsAtLeast(fuelItem, 1)) { + if (player.getInventory().containsAtLeast(fuelItem, 1) || fuelItem.getType() == Material.AIR) { if (CanLoadFuel()) { AmmoHolder.LoadedFuel += 1; SaveState();