Update to API 12

This commit is contained in:
kotyaralih 2022-01-08 09:13:51 -08:00
parent 731ada7b38
commit c59b4776ae
149 changed files with 6850 additions and 1918 deletions

View file

@ -33,10 +33,10 @@ class GrassBlock extends SolidBlock{
public function onActivate(Item $item, Player $player){
if($item->getID() === DYE and $item->getMetadata() === 0x0F){
TallGrassObject::growGrass($this->level, $this, new Random(), 8, 2);
if(($player->gamemode & 0x01) === 0){
$player->removeItem(DYE,0x0F,1);
}
TallGrassObject::growGrass($this->level, $this, new Random(), 8, 2);
return true;
}elseif($item->isHoe()){
if(($player->gamemode & 0x01) === 0){