mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 22:22:10 +00:00
Bump version, (0.6.5)
Loading Ammo/Propellant Controls Changes Fixed Fireworks firing from partially filled Siege Engines Fixed Multi-Player commanding of one Siege Engine. Added releasing command of Siege Engines upon death, login and logout. Cannot place Siege Engines in build-protected WorldGuard-ed regions.
This commit is contained in:
1 parent
84f8d68a63
commit
a514879930
7 files changed
+158
-34
No files matched your search
@@ -89,9 +89,10 @@ public class FireworkProjectile extends SiegeEngineProjectile {
|
||||
if (rocketItem.getItemMeta() instanceof FireworkMeta) {
|
||||
firework.setFireworkMeta((FireworkMeta)rocketItem.getItemMeta());
|
||||
}
|
||||
int fuse = firework.getMaxLife();
|
||||
int itemPower = 1+firework.getFireworkMeta().getPower();
|
||||
itemPower *= firework.getMaxLife();
|
||||
firework.setMaxLife(itemPower);
|
||||
fuse = fuse + (40*itemPower);
|
||||
firework.setMaxLife(fuse);
|
||||
}
|
||||
}
|
||||
if (playSound) {
|
||||
|
||||
Reference in new issue
Block a user