fixed wrong comparison

0x08 == 0x08
This commit is contained in:
Sunch 2026-06-06 18:46:02 +08:00
parent 11737d0bda
commit cece622118
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;