Skip to content

Commit

Permalink
Update npcspawner.js
Browse files Browse the repository at this point in the history
  • Loading branch information
radmanplays authored Sep 14, 2024
1 parent 1fd14a6 commit 3cace5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examplemods/npcspawner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3cace5c

Please sign in to comment.