diff --git a/src/entity/Living.php b/src/entity/Living.php index e11b2e5a1..c21f6720a 100644 --- a/src/entity/Living.php +++ b/src/entity/Living.php @@ -142,7 +142,7 @@ abstract class Living extends Entity{ $health = $healFTag->getValue(); }elseif(($healthTag = $nbt->getTag("Health")) instanceof ShortTag){ $health = $healthTag->getValue(); //Older versions of PocketMine-MP incorrectly saved this as a short instead of a float - }elseif(($healthTag = $nbt->getTag("Health")) instanceof FloatTag){ + }elseif($healthTag instanceof FloatTag){ $health = $healthTag->getValue(); }