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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user