Fixed held block placement after respawn anchor explosion (#6742)

This commit is contained in:
ipad54 2025-06-23 18:59:40 +03:00 committed by GitHub
parent 04494e845c
commit 2a97b4294d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,7 +85,7 @@ final class RespawnAnchor extends Opaque{
switch($ev->getAction()){ switch($ev->getAction()){
case PlayerRespawnAnchorUseEvent::ACTION_EXPLODE: case PlayerRespawnAnchorUseEvent::ACTION_EXPLODE:
$this->explode($player); $this->explode($player);
return false; return true;
case PlayerRespawnAnchorUseEvent::ACTION_SET_SPAWN: case PlayerRespawnAnchorUseEvent::ACTION_SET_SPAWN:
if($player->getSpawn() !== null && $player->getSpawn()->equals($this->position)){ if($player->getSpawn() !== null && $player->getSpawn()->equals($this->position)){