Skip to content

Commit

Permalink
Use oldplayer instead of new
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal852 committed Sep 22, 2024
1 parent 2f45acf commit 2022eba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PlayerRespawnHandler : AfterRespawn {

override fun afterRespawn(oldPlayer: ServerPlayerEntity, newPlayer: ServerPlayerEntity, alive: Boolean) {

if (newPlayer.spawnPointPosition != null) { // Ignore respawn if the player has a bed
if (oldPlayer.spawnPointPosition != null) { // Ignore respawn if the player has a bed
return
}

Expand Down

0 comments on commit 2022eba

Please sign in to comment.