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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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