diff --git a/examplemods/mobnpcspawner.js b/examplemods/mobnpcspawner.js index 2247a4a..7856fb9 100644 --- a/examplemods/mobnpcspawner.js +++ b/examplemods/mobnpcspawner.js @@ -34,7 +34,7 @@ }); // Add the sheep to the world - world.spawnEntityInWorld(sheep.getEntityId(), sheep); + world.spawnEntityInWorld(sheep); // Notify the player that the sheep has been spawned const ChatComponentTextClass = ModAPI.reflect.getClassById("net.minecraft.util.ChatComponentText");