From 121fd51dc677f69573c0cc1bcc18113c1a9a8bbe Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Sat, 30 Mar 2013 19:51:21 +0100 Subject: [PATCH] Fixed placing blocks on activable blocks --- src/material/block/GenericBlock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/material/block/GenericBlock.php b/src/material/block/GenericBlock.php index bc549350..89f79560 100644 --- a/src/material/block/GenericBlock.php +++ b/src/material/block/GenericBlock.php @@ -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); } } \ No newline at end of file