mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
Update npcspawner.js
This commit is contained in:
parent
61a4a06747
commit
f26411a94d
@ -9,9 +9,7 @@
|
|||||||
|
|
||||||
// Create a fake player GameProfile
|
// Create a fake player GameProfile
|
||||||
const GameProfileClass = ModAPI.reflect.getClassById("net.lax1dude.eaglercraft.v1_8.mojang.authlib.GameProfile");
|
const GameProfileClass = ModAPI.reflect.getClassById("net.lax1dude.eaglercraft.v1_8.mojang.authlib.GameProfile");
|
||||||
const fakeProfile = GameProfileClass.constructors[2](
|
const fakeProfile = GameProfileClass.constructors[2](null, ModAPI.util.str("Steve"));
|
||||||
ModAPI.reflect.getClassById("java.util.UUID").staticMethods.randomUUID(), ModAPI.util.str("Steve")
|
|
||||||
);
|
|
||||||
|
|
||||||
// Get the EntityPlayerMP class to spawn the fake player
|
// Get the EntityPlayerMP class to spawn the fake player
|
||||||
const EntityPlayerMPClass = ModAPI.reflect.getClassById("net.minecraft.entity.player.EntityPlayerMP");
|
const EntityPlayerMPClass = ModAPI.reflect.getClassById("net.minecraft.entity.player.EntityPlayerMP");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user