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:
@@ -94,7 +94,7 @@ public class GeyserEntityProperties {
|
||||
}
|
||||
|
||||
public @NonNull List<PropertyType<?, ?>> getProperties() {
|
||||
return properties;
|
||||
return properties == null ? List.of() : properties;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
|
||||
Reference in New Issue
Block a user