mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
remove some useless code
This commit is contained in:
parent
7d3fac87ab
commit
165388c8ae
2 changed files with 1 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ class RailLogic
|
|||
}
|
||||
|
||||
public function canConnectTo(RailLogic $rail){
|
||||
return $this->connectsTo($rail) || ((count($this->railPositions) == 2 ? false : (empty($this->railPositions) ? true : true)));
|
||||
return $this->connectsTo($rail) || !(count($this->railPositions) == 2);
|
||||
}
|
||||
|
||||
public function hasNeighborRail($x, $y, $z){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue