remove some useless code

This commit is contained in:
Sunch 2025-01-11 22:22:31 +08:00
parent 7d3fac87ab
commit 165388c8ae
2 changed files with 1 additions and 2 deletions

View file

@ -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;

View file

@ -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){