chickens can hatch eggs, shears fix

This commit is contained in:
GameHerobrine 2022-05-29 00:50:29 +03:00
parent bf7ff2b36b
commit ce43fb6c30
2 changed files with 17 additions and 5 deletions

View file

@ -1848,6 +1848,9 @@ class Player{
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();
if($slot->getMetadata() >= $slot->getMaxDurability()){
$this->removeItem($slot->getID(), $slot->getMetadata(), $slot->count, true);
}
$needsBreak = true;
}
}