Quick Fixes to Firework Launching

Hopefully this works.
This commit is contained in:
C_Corp2002 authored and GitHub committed 2024-01-09 20:09:50 -05:00
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);
}