From 4aa0f8f8d1d6db00efeb05bce99d693131b4d09e Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Wed, 6 Feb 2013 16:06:23 +0100 Subject: [PATCH] Slab placement fix --- src/API/ServerAPI.php | 2 +- src/classes/material/block/solid/Slab.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/API/ServerAPI.php b/src/API/ServerAPI.php index 17f093e7..d2e0af2a 100644 --- a/src/API/ServerAPI.php +++ b/src/API/ServerAPI.php @@ -133,7 +133,7 @@ class ServerAPI{ $last = $info["development"]["date"]; if($last >= $this->getProperty("last-update") and $this->getProperty("last-update") !== false){ console("[NOTICE] \x1b[33mA new DEVELOPMENT version of PocketMine-MP has been released"); - console("[NOTICE] \x1b[33mA \"".$info["development"]["version"]."\" [".substr($info["development"]["commit"], 0, 10)."]"); + console("[NOTICE] \x1b[33mVersion \"".$info["development"]["version"]."\" [".substr($info["development"]["commit"], 0, 10)."]"); console("[NOTICE] \x1b[36mIf you want to update, get the latest version at ".$info["development"]["download"]); console("[NOTICE] This message will dissapear when you issue the command \"/update-done\""); sleep(3); diff --git a/src/classes/material/block/solid/Slab.php b/src/classes/material/block/solid/Slab.php index 65469e2b..ed534717 100644 --- a/src/classes/material/block/solid/Slab.php +++ b/src/classes/material/block/solid/Slab.php @@ -71,6 +71,9 @@ class SlabBlock extends TransparentBlock{ }else{ return false; } + if($block->getID() === SLAB and ($target->getMetadata() & 0x07) !== ($this->meta & 0x07)){ + return false; + } $level->setBlock($block, $this->id, $this->meta); return true; }