mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Fix Performance Problem
Welcome, TPS!
This commit is contained in:
@@ -121,7 +121,7 @@ class WaterBlock extends LiquidBlock{
|
||||
$b = $this->getSide($side);
|
||||
if($b instanceof WaterBlock)
|
||||
{
|
||||
if( $this->getSourceCount() >= 2)
|
||||
if( $this->getSourceCount() >= 2 && $level != 0x00)
|
||||
{
|
||||
$this->level->setBlock($this, new WaterBlock(0), false, false, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user