Skip to content

Commit 73e67fc

Browse files
Fix GeyserDefineEntityPropertiesEvent#properties() NPE (#5960)
* Fix GeyserDefineEntityPropertiesEvent#properties() NPE * This is cleaner
1 parent 208f461 commit 73e67fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/org/geysermc/geyser/entity/properties/GeyserEntityProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public <T> void add(String entityType, @NonNull PropertyType<T, ? extends Entity
9494
}
9595

9696
public @NonNull List<PropertyType<?, ?>> getProperties() {
97-
return properties;
97+
return properties == null ? List.of() : properties;
9898
}
9999

100100
public boolean isEmpty() {

0 commit comments

Comments
 (0)