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 25a451c commit e2b50d7
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 @@ -4,7 +4,7 @@
if (!ModAPI.reflect.getClassById("net.minecraft.entity.player.EntityPlayerMP").instanceOf(event.sender.getRef())) { return }

if (event.command.toLowerCase().startsWith("/spawnnpc")) {
const world = event.sender.getServerForPlayer();
const world = event.sender.getEntityWorld();
const playerPos = event.sender.getPosition();


Expand Down

0 comments on commit e2b50d7

Please sign in to comment.