mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Unnecessary "?:"
This commit is contained in:
parent
4630481d54
commit
4eb6bd14a2
6 changed files with 9 additions and 9 deletions
|
|
@ -63,7 +63,7 @@ class RailLogic
|
|||
}
|
||||
|
||||
public function canConnectTo(RailLogic $rail){
|
||||
return $this->connectsTo($rail) ? true : (count($this->railPositions) == 2 ? false : (empty($this->railPositions) ? true : true));
|
||||
return $this->connectsTo($rail) || ((count($this->railPositions) == 2 ? false : (empty($this->railPositions) ? true : true)));
|
||||
}
|
||||
|
||||
public function hasNeighborRail($x, $y, $z){
|
||||
|
|
|
|||
|
|
@ -581,7 +581,7 @@ class Utils{
|
|||
}
|
||||
|
||||
public static function readBool($b){
|
||||
return Utils::readByte($b, false) === 0 ? false : true;
|
||||
return !(Utils::readByte($b, false) === 0);
|
||||
}
|
||||
|
||||
public static function writeBool($b){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue