mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-27 08:50:35 +01:00
Allow fireworks to be created. Adds BUKKIT-3262
This commit is contained in:
parent
6dc13b688a
commit
dc85940526
1 changed files with 2 additions and 0 deletions
|
@ -991,6 +991,8 @@ public class CraftWorld implements World {
|
||||||
// this is not a fish, it's a bobber, and it's probably useless
|
// this is not a fish, it's a bobber, and it's probably useless
|
||||||
entity = new EntityFishingHook(world);
|
entity = new EntityFishingHook(world);
|
||||||
entity.setLocation(x, y, z, pitch, yaw);
|
entity.setLocation(x, y, z, pitch, yaw);
|
||||||
|
} else if (Firework.class.isAssignableFrom(clazz)) {
|
||||||
|
entity = new EntityFireworks(world, x, y, z, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue