1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-30 12:19:10 +00:00

Fix GeyserDefineEntityPropertiesEvent#properties() NPE (#5960)

* Fix GeyserDefineEntityPropertiesEvent#properties() NPE

* This is cleaner
This commit is contained in:
chris
2025-11-02 13:52:26 +01:00
committed by GitHub
parent 208f4611cc
commit 73e67fc7a9

View File

@@ -94,7 +94,7 @@ public class GeyserEntityProperties {
}
public @NonNull List<PropertyType<?, ?>> getProperties() {
return properties;
return properties == null ? List.of() : properties;
}
public boolean isEmpty() {