diff options
author | feildmaster <admin@feildmaster.com> | 2012-12-22 02:57:28 -0600 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2012-12-22 12:24:16 -0600 |
commit | dc85940526734c0f76816b0e747c002d67fc2a99 (patch) | |
tree | 6205660e421fce4e2b46f5190df6e23d31508d9a /src/main | |
parent | 6dc13b688ae197a61b50dec8e81781b34cb60290 (diff) | |
download | craftbukkit-dc85940526734c0f76816b0e747c002d67fc2a99.tar craftbukkit-dc85940526734c0f76816b0e747c002d67fc2a99.tar.gz craftbukkit-dc85940526734c0f76816b0e747c002d67fc2a99.tar.lz craftbukkit-dc85940526734c0f76816b0e747c002d67fc2a99.tar.xz craftbukkit-dc85940526734c0f76816b0e747c002d67fc2a99.zip |
Allow fireworks to be created. Adds BUKKIT-3262
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 2b81286e..b4646d1b 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) { |