mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
WATER_BUCKET, LAVA_BUCKET, MILK_BUCKET
This commit is contained in:
parent
c049278a6d
commit
992f54c696
3 changed files with 8 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue