mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
liquid fixes, explosion algorithm was reverted to the old pocketmine's one
This commit is contained in:
parent
b73205744e
commit
80e767b257
3 changed files with 38 additions and 42 deletions
|
|
@ -50,14 +50,14 @@ class LavaBlock extends LiquidBlock implements LightingBlock{
|
|||
}
|
||||
|
||||
public function checkWater(){
|
||||
for($side = 1; $side <= 5; ++$side){
|
||||
for($side = 0; $side <= 5; ++$side){
|
||||
$b = $this->getSide($side);
|
||||
if($b instanceof WaterBlock){
|
||||
$level = $this->meta & 0x06;
|
||||
if($level == 0x00){
|
||||
$this->level->setBlock($this, new ObsidianBlock(), false, false, true);
|
||||
$this->level->setBlock($b, new ObsidianBlock(), false, false, true);
|
||||
}else{
|
||||
$this->level->setBlock($this, new CobblestoneBlock(), false, false, true);
|
||||
$this->level->setBlock($b, new CobblestoneBlock(), false, false, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -85,7 +85,7 @@ class LavaBlock extends LiquidBlock implements LightingBlock{
|
|||
return false;
|
||||
}
|
||||
|
||||
if( $this->checkWater()){
|
||||
if($this->checkWater()){
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue