mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 23:37:45 +00:00
Fixed placing blocks on activable blocks
This commit is contained in:
@@ -39,7 +39,7 @@ class GenericBlock extends Block{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function isBreakable(Item $item, Player $player){
|
public function isBreakable(Item $item, Player $player){
|
||||||
return $this->breakable;
|
return ($this->breakable);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onBreak(BlockAPI $level, Item $item, Player $player){
|
public function onBreak(BlockAPI $level, Item $item, Player $player){
|
||||||
@@ -54,6 +54,6 @@ class GenericBlock extends Block{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
public function onActivate(BlockAPI $level, Item $item, Player $player){
|
public function onActivate(BlockAPI $level, Item $item, Player $player){
|
||||||
return false;
|
return ($this->isActivable);
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user