mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed wrong comparison
0x08 == 0x08
This commit is contained in:
parent
11737d0bda
commit
cece622118
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue