mirror of
https://github.com/GeyserExtensionists/GeyserUtils.git
synced 2025-12-19 15:09:24 +00:00
Fix NPE
This commit is contained in:
@@ -144,8 +144,9 @@ public class GeyserUtils implements Extension {
|
||||
|
||||
public static void registerPropertiesForGeyser(String entityId) {
|
||||
|
||||
GeyserEntityProperties entityProperties = getProperties(entityId).build();
|
||||
if (entityProperties == null) return;
|
||||
GeyserEntityProperties.Builder builder = getProperties(entityId);
|
||||
if (builder == null) return;
|
||||
GeyserEntityProperties entityProperties = builder.build();
|
||||
properties.values().stream()
|
||||
.flatMap(List::stream)
|
||||
.map(Map.Entry::getKey)
|
||||
|
||||
Reference in New Issue
Block a user