mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-25 07:01:20 -09:00
Merge branch 'main' of https://github.com/eaglerforge/EaglerForgeInjector
This commit is contained in:
commit
cdf92a46c5
@ -8,7 +8,7 @@
|
|||||||
const senderPos = event.sender.getPosition();
|
const senderPos = event.sender.getPosition();
|
||||||
|
|
||||||
// Create a fake player GameProfile
|
// 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](
|
const fakeProfile = GameProfileClass.constructors[2](
|
||||||
ModAPI.reflect.getClassById("java.util.UUID").staticMethods.randomUUID(), ModAPI.util.str("Steve")
|
ModAPI.reflect.getClassById("java.util.UUID").staticMethods.randomUUID(), ModAPI.util.str("Steve")
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user