Update npcspawner.js

This commit is contained in:
radmanplays 2024-09-14 14:36:52 +03:30 committed by GitHub
parent 1fd14a6910
commit 3cace5c760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@
// Create a fake player entity
const FakePlayerClass = ModAPI.reflect.getClassById("com.mojang.authlib.GameProfile");
const fakeProfile = FakePlayerClass.constructors[2](
java.util.UUID.randomUUID(), ModAPI.util.str("Steve")
null, ModAPI.util.str("Steve")
);
const EntityPlayerMPClass = ModAPI.reflect.getClassById("net.minecraft.entity.player.EntityPlayerMP");