mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 14:05:35 +00:00
Possible fix for signs bug
This commit is contained in:
parent
ca8be7b047
commit
e1c0139ab3
@ -37,6 +37,8 @@ define("VIEWER", 3);
|
|||||||
|
|
||||||
|
|
||||||
//Players
|
//Players
|
||||||
|
define("PLAYER_MAX_RECOVERY_BUFFER", 1024);
|
||||||
|
|
||||||
define("PLAYER_SURVIVAL_SLOTS", 36);
|
define("PLAYER_SURVIVAL_SLOTS", 36);
|
||||||
define("PLAYER_CREATIVE_SLOTS", 111);
|
define("PLAYER_CREATIVE_SLOTS", 111);
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ class SignPostBlock extends TransparentBlock{
|
|||||||
|
|
||||||
public function onUpdate($type){
|
public function onUpdate($type){
|
||||||
if($type === BLOCK_UPDATE_NORMAL){
|
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));
|
ServerAPI::request()->api->entity->drop($this, BlockAPI::getItem(SIGN, 0, 1));
|
||||||
$this->level->setBlock($this, new AirBlock(), false);
|
$this->level->setBlock($this, new AirBlock(), false);
|
||||||
return BLOCK_UPDATE_NORMAL;
|
return BLOCK_UPDATE_NORMAL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user