mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
SPIGOT-2779: NPE when spawning firework with plugin
This commit is contained in:
parent
a0269d8e72
commit
17e6e857b5
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user