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