mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
Add PlayerRespawnEvent#isMissingRespawnBlock (#12422)
This commit is contained in:
@@ -518,7 +518,7 @@
|
||||
BlockPos respawnPosition = this.getRespawnPosition();
|
||||
float respawnAngle = this.getRespawnAngle();
|
||||
boolean isRespawnForced = this.isRespawnForced();
|
||||
@@ -973,13 +_,66 @@
|
||||
@@ -973,13 +_,67 @@
|
||||
Optional<ServerPlayer.RespawnPosAngle> optional = findRespawnAndUseSpawnBlock(level, respawnPosition, respawnAngle, isRespawnForced, useCharge);
|
||||
if (optional.isPresent()) {
|
||||
ServerPlayer.RespawnPosAngle respawnPosAngle = optional.get();
|
||||
@@ -560,6 +560,7 @@
|
||||
+ location,
|
||||
+ isBedSpawn,
|
||||
+ isAnchorSpawn,
|
||||
+ teleportTransition.missingRespawnBlock(),
|
||||
+ respawnReason,
|
||||
+ builder
|
||||
+ );
|
||||
|
Reference in New Issue
Block a user