mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Switched gamemode handler to Player object
This commit is contained in:
parent
4aa0f8f8d1
commit
d2dcf4f43a
10 changed files with 33 additions and 18 deletions
|
|
@ -38,6 +38,10 @@ class GenericBlock extends Block{
|
|||
return false;
|
||||
}
|
||||
|
||||
public function isBreakable(Item $item, Player $player){
|
||||
return $this->breakable;
|
||||
}
|
||||
|
||||
public function onBreak(BlockAPI $level, Item $item, Player $player){
|
||||
if($this->inWorld === true){
|
||||
$level->setBlock($this, AIR, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue