diff options
author | md_5 <git@md-5.net> | 2016-11-18 09:22:40 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-18 09:22:40 +1100 |
commit | 17e6e857b5a9dd3f6fd42bc13d7e3798357077cf (patch) | |
tree | 7daadceb29e79168e4f72e120b8a68654025f6eb /src | |
parent | a0269d8e72ceb6d58e4ebfd3ba19998155e06c60 (diff) | |
download | craftbukkit-17e6e857b5a9dd3f6fd42bc13d7e3798357077cf.tar craftbukkit-17e6e857b5a9dd3f6fd42bc13d7e3798357077cf.tar.gz craftbukkit-17e6e857b5a9dd3f6fd42bc13d7e3798357077cf.tar.lz craftbukkit-17e6e857b5a9dd3f6fd42bc13d7e3798357077cf.tar.xz craftbukkit-17e6e857b5a9dd3f6fd42bc13d7e3798357077cf.zip |
SPIGOT-2779: NPE when spawning firework with plugin
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index ae0cc72b..260f72f7 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -1149,7 +1149,7 @@ public class CraftWorld implements World { // what is this, I don't even } } else if (Firework.class.isAssignableFrom(clazz)) { - entity = new EntityFireworks(world, x, y, z, null); + entity = new EntityFireworks(world, x, y, z, net.minecraft.server.ItemStack.a); } else if (AreaEffectCloud.class.isAssignableFrom(clazz)) { entity = new EntityAreaEffectCloud(world, x, y, z); } else if (EvokerFangs.class.isAssignableFrom(clazz)) { |