mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 20:49:43 +00:00
Bucket Water/Lava can be placed at torch block
Vanilla feature
This commit is contained in:
parent
d6c57e4aa6
commit
7d167f7055
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ class BucketItem extends Item{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}elseif($this->meta === WATER){
|
}elseif($this->meta === WATER){
|
||||||
if($block->getID() === AIR || $block instanceof LiquidBlock){
|
if($block->getID() === AIR || $block->getID() === TORCH || $block instanceof LiquidBlock){
|
||||||
$water = new WaterBlock();
|
$water = new WaterBlock();
|
||||||
$level->setBlock($block, $water, true, false, true);
|
$level->setBlock($block, $water, true, false, true);
|
||||||
//$water->place($this, $player, $block, $target, $face, $fx, $fy, $fz);
|
//$water->place($this, $player, $block, $target, $face, $fx, $fy, $fz);
|
||||||
|
|
@ -54,7 +54,7 @@ class BucketItem extends Item{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}elseif($this->meta === LAVA){
|
}elseif($this->meta === LAVA){
|
||||||
if($block->getID() === AIR || $block instanceof LiquidBlock){
|
if($block->getID() === AIR || $block->getID() === TORCH || $block instanceof LiquidBlock){
|
||||||
$lava = new LavaBlock();
|
$lava = new LavaBlock();
|
||||||
$level->setBlock($block, $lava, true, false, true);
|
$level->setBlock($block, $lava, true, false, true);
|
||||||
//$lava->place(clone $this, $player, $block, $target, $face, $fx, $fy, $fz);
|
//$lava->place(clone $this, $player, $block, $target, $face, $fx, $fy, $fz);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue