From dc85940526734c0f76816b0e747c002d67fc2a99 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Sat, 22 Dec 2012 02:57:28 -0600 Subject: [PATCH] Allow fireworks to be created. Adds BUKKIT-3262 --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 2b81286ecc..b4646d1bf0 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -991,6 +991,8 @@ public class CraftWorld implements World { // this is not a fish, it's a bobber, and it's probably useless entity = new EntityFishingHook(world); entity.setLocation(x, y, z, pitch, yaw); + } else if (Firework.class.isAssignableFrom(clazz)) { + entity = new EntityFireworks(world, x, y, z, null); } if (entity != null) {