mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59: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
|
|
@ -591,7 +591,6 @@ class PocketMinecraftServer{
|
|||
$this->clients[$CID] = new Player($packet->clientID, $packet->ip, $packet->port, $packet->mtuSize); //New Session!
|
||||
$pk = new RakNetPacket(RakNetInfo::OPEN_CONNECTION_REPLY_2);
|
||||
$pk->serverID = $this->serverID;
|
||||
$pk->port = $this->port;
|
||||
$pk->mtuSize = $packet->mtuSize;
|
||||
$pk->ip = $packet->ip;
|
||||
$pk->port = $packet->port;
|
||||
|
|
|
|||
|
|
@ -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