mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
Unnecessary "?:"
This commit is contained in:
parent
4630481d54
commit
4eb6bd14a2
6 changed files with 9 additions and 9 deletions
|
|
@ -133,8 +133,8 @@ class MobSpawner{
|
|||
$b1 = $this->level->level->getBlockID($x, $y - 1, $z);
|
||||
if(
|
||||
!StaticBlock::getIsSolid($b) && !StaticBlock::getIsLiquid($b) &&
|
||||
(StaticBlock::getIsSolid($b1) && ($grassOnly ? $b1 === GRASS : true) &&
|
||||
($highMob ? !StaticBlock::getIsSolid($b2) && !StaticBlock::getIsLiquid($b2) : true))
|
||||
(StaticBlock::getIsSolid($b1) && (!$grassOnly || $b1 === GRASS) &&
|
||||
(!$highMob || !StaticBlock::getIsSolid($b2) && !StaticBlock::getIsLiquid($b2)))
|
||||
){
|
||||
$allowed[] = $y;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue