Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 08:30:12 +01:00
Check if Fireworks tag is null (#1255)
Thank you Mineplex, very cool.
Dieser Commit ist enthalten in:
Ursprung
46c34842d8
Commit
9643b208f3
@ -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) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren