WATER_BUCKET, LAVA_BUCKET, MILK_BUCKET

This commit is contained in:
GameHerobrine 2022-07-12 00:03:31 +03:00
parent c049278a6d
commit 992f54c696
3 changed files with 8 additions and 2 deletions

View file

@ -31,7 +31,7 @@ class BucketItem extends Item{
if($target instanceof LiquidBlock){
$level->setBlock($target, new AirBlock(), true, false, true);
if(($player->gamemode & 0x01) === 0){
$this->meta = ($target instanceof WaterBlock) ? WATER:LAVA;
$this->meta = ($target instanceof WaterBlock) ? WATER : LAVA;
}
return true;
}