mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
chickens can hatch eggs, shears fix
This commit is contained in:
parent
bf7ff2b36b
commit
ce43fb6c30
2 changed files with 17 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue