mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
Bumped version (0.6.1)
More fixes, updated Siege Engine placement code. Now correctly applies FireworkMeta to launched Rockets. The Functionality for resupplying ammo and propellant via Right Clicking a Siege Engine is fixed Re-added default FireworkProjectiles to Siege & Naval Cannons. Bumped version (0.6.1) (Skipped a few numbers due to the number of logic fixes, feature changes & additions
This commit is contained in:
1 parent
155fc4ce09
commit
3fc4d1cf77
7 files changed
+95
-99
No files matched your search
@@ -69,7 +69,7 @@ public class SiegeEngine implements Cloneable {
|
||||
public int baseStandModelNumber;
|
||||
|
||||
// Passed parameters
|
||||
public String name = "Unnammed Siege Engine";
|
||||
public String name = "Unnammed SiegeEngine";
|
||||
public ItemStack fuelItem = new ItemStack(Material.GUNPOWDER);
|
||||
public HashMap<ItemStack, SiegeEngineProjectile> projectiles = new HashMap<>();
|
||||
|
||||
@@ -364,12 +364,17 @@ public class SiegeEngine implements Cloneable {
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public Boolean place(Entity player, Location l) {
|
||||
public boolean place(Entity player, Location l) {
|
||||
l.add(0.5, 0, 0.5);
|
||||
NamespacedKey key = new NamespacedKey(SiegeEngines.getInstance(), "siege_engines");
|
||||
if (this == null || !this.enabled) {
|
||||
return false;
|
||||
}
|
||||
for (Entity ent : l.getWorld().getNearbyEntities(l,2.5d,2.5d,2.5d)) {
|
||||
if (SiegeEngines.activeSiegeEngines.keySet().contains(ent.getUniqueId())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
l.setY(l.getY() + 1);
|
||||
l.setDirection(player.getFacing().getDirection());
|
||||
ItemStack item = new ItemStack(Material.CARVED_PUMPKIN);
|
||||
|
||||
Reference in new issue
Block a user