From 4546ea677151c71c163b0b40e1fbe1b078f6c034 Mon Sep 17 00:00:00 2001 From: "pmmp-admin-bot[bot]" <188621379+pmmp-admin-bot[bot]@users.noreply.github.com> Date: Fri, 26 Sep 2025 14:53:53 +0000 Subject: [PATCH 1/2] 5.34.1 is next Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/18041294757 --- src/VersionInfo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/VersionInfo.php b/src/VersionInfo.php index 55495a959..93e593133 100644 --- a/src/VersionInfo.php +++ b/src/VersionInfo.php @@ -31,8 +31,8 @@ use function str_repeat; final class VersionInfo{ public const NAME = "PocketMine-MP"; - public const BASE_VERSION = "5.34.0"; - public const IS_DEVELOPMENT_BUILD = false; + public const BASE_VERSION = "5.34.1"; + public const IS_DEVELOPMENT_BUILD = true; public const BUILD_CHANNEL = "stable"; /** From d6e05c90fea2ab3afb1e1e118a4839248a83b70c Mon Sep 17 00:00:00 2001 From: "Dylan T." Date: Fri, 26 Sep 2025 19:18:32 +0100 Subject: [PATCH 2/2] EndCrystal: defer explosion until next tick update (#6801) --- src/entity/object/EndCrystal.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/entity/object/EndCrystal.php b/src/entity/object/EndCrystal.php index 74c7664bf..2b79773dc 100644 --- a/src/entity/object/EndCrystal.php +++ b/src/entity/object/EndCrystal.php @@ -52,6 +52,8 @@ class EndCrystal extends Entity implements Explosive{ protected bool $showBase = false; protected ?Vector3 $beamTarget = null; + private bool $primed = false; + protected function getInitialSizeInfo() : EntitySizeInfo{ return new EntitySizeInfo(2.0, 2.0); } protected function getInitialDragMultiplier() : float{ return 1.0; } @@ -88,11 +90,9 @@ class EndCrystal extends Entity implements Explosive{ parent::attack($source); if( $source->getCause() !== EntityDamageEvent::CAUSE_VOID && - !$this->isFlaggedForDespawn() && !$source->isCancelled() ){ - $this->flagForDespawn(); - $this->explode(); + $this->primed = true; } } @@ -125,6 +125,13 @@ class EndCrystal extends Entity implements Explosive{ return $nbt; } + protected function onDeathUpdate(int $tickDiff) : bool{ + if($this->primed){ + $this->explode(); + } + return true; + } + public function explode() : void{ $ev = new EntityPreExplodeEvent($this, 6); $ev->call();