Skip to content

Commit

Permalink
Fix /spawn not moving the player in all cases
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCurle committed Dec 24, 2023
1 parent 1719214 commit 56de148
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static int execute(CommandSourceStack player) {

player.sendSystemMessage(Component.translatable(Language.getInstance()
.getOrDefault("bareessentials.spawn.tospawn")));
player.getPlayer().moveTo(level.getSharedSpawnPos().getX() + 0.5, level.getSharedSpawnPos().getY(),
player.getPlayer().teleportTo(level.getSharedSpawnPos().getX() + 0.5, level.getSharedSpawnPos().getY(),
level.getSharedSpawnPos().getZ() + 0.5);
}
return Command.SINGLE_SUCCESS;
Expand Down

0 comments on commit 56de148

Please sign in to comment.