From f26411a94d23ad8b7b6f59d82ef21e69d5c237d1 Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:09:14 +0330 Subject: [PATCH] Update npcspawner.js --- examplemods/npcspawner.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examplemods/npcspawner.js b/examplemods/npcspawner.js index 13a0251..e2f1718 100644 --- a/examplemods/npcspawner.js +++ b/examplemods/npcspawner.js @@ -9,9 +9,7 @@ // Create a fake player 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") - ); + const fakeProfile = GameProfileClass.constructors[2](null, ModAPI.util.str("Steve")); // Get the EntityPlayerMP class to spawn the fake player const EntityPlayerMPClass = ModAPI.reflect.getClassById("net.minecraft.entity.player.EntityPlayerMP");