From a8412c54b4ed6de4f3f09a07ad246a109d97093c Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:27:27 +0330 Subject: [PATCH] Update mobnpcspawner.js --- examplemods/mobnpcspawner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");