SPIGOT-2779: NPE when spawning firework with plugin

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-11-18 09:22:40 +11:00
parent 4e151a9020
commit 43609f7ab2

View File

@ -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)) {