From e1c0139ab3afa2009378546fa8f2df241b9373b5 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 9 Jun 2013 23:02:01 +0200 Subject: [PATCH] Possible fix for signs bug --- src/constants/GeneralConstants.php | 2 ++ src/material/block/attachable/SignPost.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/constants/GeneralConstants.php b/src/constants/GeneralConstants.php index 6bbb93952..d6d609b4e 100644 --- a/src/constants/GeneralConstants.php +++ b/src/constants/GeneralConstants.php @@ -37,6 +37,8 @@ define("VIEWER", 3); //Players +define("PLAYER_MAX_RECOVERY_BUFFER", 1024); + define("PLAYER_SURVIVAL_SLOTS", 36); define("PLAYER_CREATIVE_SLOTS", 111); diff --git a/src/material/block/attachable/SignPost.php b/src/material/block/attachable/SignPost.php index db03c4f7b..41edf3eef 100644 --- a/src/material/block/attachable/SignPost.php +++ b/src/material/block/attachable/SignPost.php @@ -55,7 +55,7 @@ class SignPostBlock extends TransparentBlock{ public function onUpdate($type){ if($type === BLOCK_UPDATE_NORMAL){ - if($this->getSide(0)->isSolid === false){ //Replace wit common break method + if($this->getSide(0)->getID() === AIR){ //Replace wit common break method ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem(SIGN, 0, 1)); $this->level->setBlock($this, new AirBlock(), false); return BLOCK_UPDATE_NORMAL;