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

@@ -77,8 +77,8 @@ public class ExplosiveProjectile extends SiegeEngineProjectile {
private void CreateEntity(Entity entity, Location loc, Float velocity, Entity player) {
World world = entity.getLocation().getWorld();
Entity tnt = world.spawnEntity(loc, EntityType.SNOWBALL);
Snowball ball = (Snowball) tnt;
Entity tnt = world.spawnEntity(loc, EntityType.SHULKER_BULLET);
org.bukkit.entity.Projectile ball = (org.bukkit.entity.Projectile) tnt;
if (player instanceof org.bukkit.projectiles.ProjectileSource)
ball.setShooter((org.bukkit.projectiles.ProjectileSource) player);
ClickHandler.projectiles.put(tnt.getUniqueId(), this);