Update npcspawner.js

This commit is contained in:
radmanplays 2024-09-15 11:03:43 +03:30 committed by GitHub
parent 09ccaff17b
commit c4003421f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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")
);