mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
commit
2551bd64ca
1 changed files with 8 additions and 0 deletions
|
|
@ -119,6 +119,10 @@ class WaterBlock extends LiquidBlock{
|
||||||
if($sb instanceof WaterBlock){
|
if($sb instanceof WaterBlock){
|
||||||
$tlevel = $sb->meta & 0x07;
|
$tlevel = $sb->meta & 0x07;
|
||||||
if($tlevel != 0x00){
|
if($tlevel != 0x00){
|
||||||
|
for ($s = 0; $s <= 5; $s++) {
|
||||||
|
$ssb = $sb->getSide($s);
|
||||||
|
ServerAPI::request()->api->block->scheduleBlockUpdate(new Position($ssb, 0, 0, $this->level), 10, BLOCK_UPDATE_NORMAL);
|
||||||
|
}
|
||||||
$this->level->setBlock($sb, new AirBlock(), false, false, true);
|
$this->level->setBlock($sb, new AirBlock(), false, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -126,6 +130,10 @@ class WaterBlock extends LiquidBlock{
|
||||||
if($b instanceof WaterBlock){
|
if($b instanceof WaterBlock){
|
||||||
$tlevel = $b->meta & 0x07;
|
$tlevel = $b->meta & 0x07;
|
||||||
if($tlevel != 0x00){
|
if($tlevel != 0x00){
|
||||||
|
for ($s = 0; $s <= 5; $s++) {
|
||||||
|
$ssb = $sb->getSide($s);
|
||||||
|
ServerAPI::request()->api->block->scheduleBlockUpdate(new Position($ssb, 0, 0, $this->level), 10, BLOCK_UPDATE_NORMAL);
|
||||||
|
}
|
||||||
$this->level->setBlock($b, new AirBlock(), false, false, true);
|
$this->level->setBlock($b, new AirBlock(), false, false, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue