1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-31 04:36:33 +00:00

Check if Fireworks tag is null (#1255)

Thank you Mineplex, very cool.
This commit is contained in:
Camotoy
2020-09-14 20:40:41 -04:00
committed by GitHub
parent 46c34842d8
commit 9643b208f3

View File

@@ -72,6 +72,10 @@ public class FireworkEntity extends Entity {
}
CompoundTag fireworks = tag.get("Fireworks");
if (fireworks == null) {
// Thank you Mineplex very cool
return;
}
NbtMapBuilder fireworksBuilder = NbtMap.builder();
if (fireworks.get("Flight") != null) {