Update mobnpcspawner.js

This commit is contained in:
radmanplays 2024-09-29 16:23:54 +03:30 committed by GitHub
parent 707d3a1f14
commit 0224803460
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,7 +34,7 @@
}); });
// Add the sheep to the world // Add the sheep to the world
world.addEntityToWorld(sheep.getEntityId(), sheep); world.spawnEntityInWorld(sheep.getEntityId(), sheep);
// Notify the player that the sheep has been spawned // Notify the player that the sheep has been spawned
const ChatComponentTextClass = ModAPI.reflect.getClassById("net.minecraft.util.ChatComponentText"); const ChatComponentTextClass = ModAPI.reflect.getClassById("net.minecraft.util.ChatComponentText");