9
0
mirror of https://github.com/GeyserExtensionists/GeyserUtils.git synced 2025-12-19 15:09:24 +00:00
This commit is contained in:
zimzaza4
2025-10-15 11:55:23 +08:00
parent ff0f982953
commit 51c5998f80

View File

@@ -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)