mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Fixed placing blocks on activable blocks
This commit is contained in:
parent
44fcf4a6ed
commit
121fd51dc6
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ class GenericBlock extends Block{
|
|||
}
|
||||
|
||||
public function isBreakable(Item $item, Player $player){
|
||||
return $this->breakable;
|
||||
return ($this->breakable);
|
||||
}
|
||||
|
||||
public function onBreak(BlockAPI $level, Item $item, Player $player){
|
||||
|
|
@ -54,6 +54,6 @@ class GenericBlock extends Block{
|
|||
return false;
|
||||
}
|
||||
public function onActivate(BlockAPI $level, Item $item, Player $player){
|
||||
return false;
|
||||
return ($this->isActivable);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue