From cece622118689dd11d17b17ae1488773f0c244a3 Mon Sep 17 00:00:00 2001 From: Sunch <120295462+Sunch233@users.noreply.github.com> Date: Sat, 6 Jun 2026 18:46:02 +0800 Subject: [PATCH 1/2] fixed wrong comparison 0x08 == 0x08 --- src/material/block/nonfull/SlabBlock.php | 2 +- src/material/block/nonfull/WoodSlabBlock.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; From 22401a6378bdc921d7b7524a8d18e59272902463 Mon Sep 17 00:00:00 2001 From: Sunch <120295462+Sunch233@users.noreply.github.com> Date: Sat, 6 Jun 2026 18:46:17 +0800 Subject: [PATCH 2/2] Player: typo --- src/Player.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: