mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-17 08:54:22 +00:00
FrostedIce: Remove non-Bedrock melting behaviour (#5486)
This commit is contained in:
parent
777a901932
commit
4517948297
@ -48,12 +48,7 @@ class FrostedIce extends Ice{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function onNearbyBlockChange() : void{
|
public function onNearbyBlockChange() : void{
|
||||||
$world = $this->position->getWorld();
|
$this->position->getWorld()->scheduleDelayedBlockUpdate($this->position, mt_rand(20, 40));
|
||||||
if(!$this->checkAdjacentBlocks(2)){
|
|
||||||
$world->useBreakOn($this->position);
|
|
||||||
}else{
|
|
||||||
$world->scheduleDelayedBlockUpdate($this->position, mt_rand(20, 40));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onRandomTick() : void{
|
public function onRandomTick() : void{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user