mirror of
https://github.com/darksaid98/SiegeEngines.git
synced 2026-12-01 14:38:55 +00:00
Quick Fixes to Firework Launching
Hopefully this works.
This commit is contained in:
1 parent
2024801edf
commit
c407701476
3 files changed
+5
-15
No files matched your search
@@ -320,11 +320,6 @@ public class SiegeEngine implements Cloneable {
|
||||
SiegeEngineProjectile projType = projectiles.get(LoadedProjectile);
|
||||
if (projType == null) return;
|
||||
projType.Shoot(player, entity, this.GetFireLocation(living), loadedFuel * velocityPerFuel);
|
||||
if (LoadedProjectile.getType() == Material.FIREWORK_ROCKET) {
|
||||
projectiles.remove(LoadedProjectile);
|
||||
projectiles.remove(SiegeEnginesUtil.DEFAULT_ROCKET);
|
||||
projectiles.put(SiegeEnginesUtil.DEFAULT_ROCKET, FireworkProjectile.getDefaultRocketShot(SiegeEnginesUtil.DEFAULT_ROCKET));
|
||||
}
|
||||
}
|
||||
nextModelNumber += 1;
|
||||
|
||||
@@ -353,11 +348,6 @@ public class SiegeEngine implements Cloneable {
|
||||
SiegeEngineProjectile projType = projectiles.get(LoadedProjectile);
|
||||
if (projType == null) return;
|
||||
projType.Shoot(player, entity, this.GetFireLocation(living), loadedFuel * velocityPerFuel);
|
||||
if (LoadedProjectile.getType() == Material.FIREWORK_ROCKET) {
|
||||
projectiles.remove(LoadedProjectile);
|
||||
projectiles.remove(SiegeEnginesUtil.DEFAULT_ROCKET);
|
||||
projectiles.put(SiegeEnginesUtil.DEFAULT_ROCKET, FireworkProjectile.getDefaultRocketShot(SiegeEnginesUtil.DEFAULT_ROCKET));
|
||||
}
|
||||
}, (long) delay);
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user