From 25a451c8396d83604709af73ffab1f2a39ce68c0 Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Sat, 14 Sep 2024 15:16:56 +0330 Subject: [PATCH] Update npcspawner.js --- examplemods/npcspawner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examplemods/npcspawner.js b/examplemods/npcspawner.js index 4a74640..f06bc7c 100644 --- a/examplemods/npcspawner.js +++ b/examplemods/npcspawner.js @@ -11,7 +11,7 @@ // Create a fake player entity with a string-based UUID const GameProfileClass = ModAPI.reflect.getClassById("com.mojang.authlib.GameProfile"); const fakeProfile = GameProfileClass.constructors[2]( - ModAPI.util.unstr(event.sender.getGameProfile().id2.toString()), ModAPI.util.str("Steve") + event.sender.getGameProfile().id2.toString(), ModAPI.util.str("Steve") ); const EntityPlayerMPClass = ModAPI.reflect.getClassById("net.minecraft.entity.player.EntityPlayerMP");