diff --git a/src/Player.php b/src/Player.php index 4ad26a57..de36bad5 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1379,10 +1379,11 @@ class Player{ } public function makeInvisibleForAllPlayers(){ - foreach($this->server->api->player->getA as $player){ + foreach($this->server->api->player->getAll() as $player){ if($player->CID != $this->CID) $this->setInvisibleFor($player, true); } } + public function getGamemode(){ switch($this->gamemode){ case SURVIVAL: diff --git a/src/material/block/nonfull/SlabBlock.php b/src/material/block/nonfull/SlabBlock.php index da167514..ecbeb1ba 100644 --- a/src/material/block/nonfull/SlabBlock.php +++ b/src/material/block/nonfull/SlabBlock.php @@ -29,7 +29,7 @@ class SlabBlock extends TransparentBlock{ [$id, $meta] = $level->level->getBlock($x, $y, $z); - if($meta & 0x08 == 0x08){ + if(($meta & 0x08) == 0x08){ StaticBlock::setBlockBounds($id, 0, 0, 0, 1, 1, 1); }else{ $bottom = (($meta ^ 8) >> 3) & 1; diff --git a/src/material/block/nonfull/WoodSlabBlock.php b/src/material/block/nonfull/WoodSlabBlock.php index 64ced90a..576bae2c 100644 --- a/src/material/block/nonfull/WoodSlabBlock.php +++ b/src/material/block/nonfull/WoodSlabBlock.php @@ -25,7 +25,7 @@ class WoodSlabBlock extends TransparentBlock{ [$id, $meta] = $level->level->getBlock($x, $y, $z); - if($meta & 0x08 == 0x08){ + if(($meta & 0x08) == 0x08){ StaticBlock::setBlockBounds($id, 0, 0, 0, 1, 1, 1); }else{ $bottom = (($meta ^ 8) >> 3) & 1;