Skip to content

Commit

Permalink
Tweaked entity registration
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryLoenwind committed Mar 15, 2020
1 parent 1e8bdcb commit 61438ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ static void register(@Nonnull Register<EntityEntry> event, @Nonnull String name,
IMobID id) {
ResourceLocation rl = new ResourceLocation(EnderIOZoo.MODID, name);
EntityEntry entry = new EntityEntry(clazz, EnderIOZoo.MODID + "." + name);
entry.setEgg(new EntityEggInfo(rl, eggBgCol, eggFgCol));
event.getRegistry().register(entry.setRegistryName(rl));
entry.setEgg(new EntityEggInfo(rl, eggBgCol, eggFgCol));

EntityRegistry.registerModEntity(entry.getRegistryName(), entry.getEntityClass(), entry.getName(), id.getID(), EnderIOZoo.MODID, 64, 3, true);
}
Expand Down

0 comments on commit 61438ae

Please sign in to comment.