mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
Removed collision check crash on Slab
This commit is contained in:
parent
2ec0d86126
commit
b064f1e71a
@ -70,7 +70,8 @@ class Slab extends Transparent{
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}elseif(!($player instanceof Player) or !$player->inBlock($block)){
|
//TODO: check for collision
|
||||||
|
}elseif(!($player instanceof Player)){
|
||||||
if($block->getID() === self::SLAB){
|
if($block->getID() === self::SLAB){
|
||||||
if(($block->getDamage() & 0x07) === ($this->meta & 0x07)){
|
if(($block->getDamage() & 0x07) === ($this->meta & 0x07)){
|
||||||
$this->getLevel()->setBlock($block, Block::get(Item::DOUBLE_SLAB, $this->meta), true, false, true);
|
$this->getLevel()->setBlock($block, Block::get(Item::DOUBLE_SLAB, $this->meta), true, false, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user