Merge pull request #70 from yefengeeeeeeeeeee/Torch-fix

Bucket Water/Lava can be placed at torch block
This commit is contained in:
for(int i = 0;i 100; ++i){EntityPlayer p = mc.thePlayer; mc.getSendQueue().addToSendQueue(new Packet11PlayerPosition(p.posX + 0.15*i, p.boundingBox.minY, p.posY, p.posZ + 0.15*i, true)); mc.getSendQueue().addToSendQueue(new Packet19EntityAction(p, 3));} 2026-03-28 00:30:10 +03:00 • committed by GitHub
commit 6a47ca7381
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ class BucketItem extends Item{
return true;
}
}elseif($this->meta === WATER){
if($block->getID() === AIR || $block instanceof LiquidBlock){
if($block->getID() === AIR || $block->getID() === TORCH || $block instanceof LiquidBlock){
$water = new WaterBlock();
$level->setBlock($block, $water, true, false, true);
//$water->place($this, $player, $block, $target, $face, $fx, $fy, $fz);
@ -54,7 +54,7 @@ class BucketItem extends Item{
return true;
}
}elseif($this->meta === LAVA){
if($block->getID() === AIR || $block instanceof LiquidBlock){
if($block->getID() === AIR || $block->getID() === TORCH || $block instanceof LiquidBlock){
$lava = new LavaBlock();
$level->setBlock($block, $lava, true, false, true);
//$lava->place(clone $this, $player, $block, $target, $face, $fx, $fy, $fz);