From cac3c356a5a83cf6cada0269e86f8d8d11e80c52 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 6 Nov 2019 14:29:43 -0500 Subject: [PATCH] Painting: fix dropping multiple items when multiple blockupdates occur in the same tick test case: place sand on top of a line of signs, put a painting on the sand and break the supporting sign fixes #2774 for stable --- src/pocketmine/entity/object/Painting.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pocketmine/entity/object/Painting.php b/src/pocketmine/entity/object/Painting.php index 70e47307f..f60368519 100644 --- a/src/pocketmine/entity/object/Painting.php +++ b/src/pocketmine/entity/object/Painting.php @@ -90,6 +90,9 @@ class Painting extends Entity{ } public function kill() : void{ + if(!$this->isAlive()){ + return; + } parent::kill(); $drops = true;