add a check

This commit is contained in:
zimzaza4
2024-07-17 12:08:54 +08:00
committed by GitHub
parent a4db3bd991
commit 0373d2ac3f

View File

@@ -47,6 +47,9 @@ public class ExtensionMain implements Extension {
GeyserUtils.addCustomEntity(id);
Geometry geometry = GeneratorMain.geometryMap.get(entity);
if (geometry == null) {
continue;
}
geometry.getBones().forEach(bone -> {
GeyserUtils.addProperty(id, entity + ":" + bone, Boolean.class);
});