Skip to content

Commit

Permalink
Fix mods entity register
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Jan 4, 2024
1 parent ba88df4 commit 11b6d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/mohistmc/forge/ForgeInjectBukkit.java
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ public static WorldType addEnumWorldType(String name)
}

public static void addEnumEntity() {
for (Map.Entry<RegistryKey<net.minecraft.entity.EntityType<?>>, net.minecraft.entity.EntityType<?>> entity : ForgeRegistries.ENTITIES.getEntries()) {
ResourceLocation resourceLocation = entity.getValue().getRegistryName();
for (net.minecraft.entity.EntityType<?> entity : ForgeRegistries.ENTITIES) {
ResourceLocation resourceLocation = ForgeRegistries.ENTITIES.getKey(entity);
NamespacedKey key = CraftNamespacedKey.fromMinecraft(resourceLocation);
if (!resourceLocation.getNamespace().equals(NamespacedKey.MINECRAFT)) {
String entityType = normalizeName(resourceLocation.toString());
Expand Down

0 comments on commit 11b6d20

Please sign in to comment.