From c4003421f2b485a4bf63ddb80c862b8e33b12114 Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Sun, 15 Sep 2024 11:03:43 +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 3a2a561..13a0251 100644 --- a/examplemods/npcspawner.js +++ b/examplemods/npcspawner.js @@ -8,7 +8,7 @@ const senderPos = event.sender.getPosition(); // Create a fake player GameProfile - const GameProfileClass = ModAPI.reflect.getClassById("com.mojang.authlib.GameProfile"); + const GameProfileClass = ModAPI.reflect.getClassById("net.lax1dude.eaglercraft.v1_8.mojang.authlib.GameProfile"); const fakeProfile = GameProfileClass.constructors[2]( ModAPI.reflect.getClassById("java.util.UUID").staticMethods.randomUUID(), ModAPI.util.str("Steve") );