Small Cleanup For World 2 Support

Calculate Port For World Based On World Number
Use Existing World int For World In Server
This commit is contained in:
Dark98
2021-11-14 22:58:29 +00:00
parent 45450dbb9c
commit ccc0353bad
5 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -5927,7 +5927,7 @@ public class Game extends RSApplet {
loginMessage2 = "Connecting to server...";
drawLoginScreen(true);
}
socketStream = new RSSocket(this, openSocket((ClientSettings.SERVER_WORLD == 1) ? 43594 : 43597 + portOff));
socketStream = new RSSocket(this, openSocket((ClientSettings.SERVER_WORLD == 1) ? 43594 : 43595 + ClientSettings.SERVER_WORLD + portOff));
long l = TextClass.longForName(s);
int i = (int) (l >> 16 & 31L);
stream.currentOffset = 0;