From a08e4eaf7323ab28a9a7891b12201bd10a67ec4a Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Mon, 22 Jul 2024 18:09:13 +0300 Subject: [PATCH] fixed isBaby detection in /summon --- src/API/EntityAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/API/EntityAPI.php b/src/API/EntityAPI.php index 96627ad3..7fc6a7df 100644 --- a/src/API/EntityAPI.php +++ b/src/API/EntityAPI.php @@ -82,7 +82,7 @@ class EntityAPI{ $this->summon($pos, ENTITY_MOB, $type, ["IsBaby" => $isBaby]); } - return "$amount ".($isBaby === 1 ? "Baby" : "")." $mobName(s) spawned in $x, $y, $z."; + return "$amount ".($isBaby ? "Baby " : "")."$mobName(s) spawned in $x, $y, $z."; } elseif(strtolower($args[1]) == "baby"){//summon [baby] $this->summon($pos, ENTITY_MOB, $type, ["IsBaby" => 1]);