Skip to content

Commit 2022eba

Browse files
committed
Use oldplayer instead of new
1 parent 2f45acf commit 2022eba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/fr/unreal852/quantum/callback/PlayerRespawnHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PlayerRespawnHandler : AfterRespawn {
1313

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

16-
if (newPlayer.spawnPointPosition != null) { // Ignore respawn if the player has a bed
16+
if (oldPlayer.spawnPointPosition != null) { // Ignore respawn if the player has a bed
1717
return
1818
}
1919

0 commit comments

Comments
 (0)