fixed bugs 71,72,43 and 32

This commit is contained in:
GameHerobrine 2022-09-06 19:22:54 +03:00
parent 7fb11d97fd
commit d02c98b2b3
7 changed files with 31 additions and 19 deletions

View file

@ -1812,7 +1812,7 @@ class Player{
}
break;
case MOB_SHEEP:
if($slot->getID() === SHEARS && $target->data["Sheared"] === 0){ //not sheared
if($slot->getID() === SHEARS && $target->data["Sheared"] === 0 && !$target->isBaby()){ //not sheared
ServerAPI::request()->api->entity->drop(new Position($target->x + 0.5, $target->y, $target->z + 0.5, $target->level), BlockAPI::getItem(WOOL, $target->data["Color"], mt_rand(1, 3)));
$target->data["Sheared"] = 1; //i hope it means sheared right?
$target->updateMetadata();