mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Slab placement fix
This commit is contained in:
parent
5bca4242c2
commit
4aa0f8f8d1
2 changed files with 4 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ class ServerAPI{
|
||||||
$last = $info["development"]["date"];
|
$last = $info["development"]["date"];
|
||||||
if($last >= $this->getProperty("last-update") and $this->getProperty("last-update") !== false){
|
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 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] \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\"");
|
console("[NOTICE] This message will dissapear when you issue the command \"/update-done\"");
|
||||||
sleep(3);
|
sleep(3);
|
||||||
|
|
|
||||||
|
|
@ -71,6 +71,9 @@ class SlabBlock extends TransparentBlock{
|
||||||
}else{
|
}else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if($block->getID() === SLAB and ($target->getMetadata() & 0x07) !== ($this->meta & 0x07)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
$level->setBlock($block, $this->id, $this->meta);
|
$level->setBlock($block, $this->id, $this->meta);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue