3 box limit
This commit is contained in:
@@ -526,7 +526,7 @@ public enum InterestManager implements Runnable {
|
|||||||
if (origin == null)
|
if (origin == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int currentConnections = 1;
|
int currentConnections = 0;
|
||||||
for(PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()){
|
for(PlayerCharacter pc : SessionManager.getAllActivePlayerCharacters()){
|
||||||
if(pc.isActive() && pc.isEnteredWorld() && pc.getClientConnection().machineID.equals(player.getClientConnection().machineID)){
|
if(pc.isActive() && pc.isEnteredWorld() && pc.getClientConnection().machineID.equals(player.getClientConnection().machineID)){
|
||||||
currentConnections++;
|
currentConnections++;
|
||||||
@@ -534,7 +534,7 @@ public enum InterestManager implements Runnable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (currentConnections >= 3) {
|
if (currentConnections >= 2) {
|
||||||
Session s = SessionManager.getSession(player);
|
Session s = SessionManager.getSession(player);
|
||||||
if (s.getAccount() != null) {
|
if (s.getAccount() != null) {
|
||||||
CharSelectScreenMsg cssm = new CharSelectScreenMsg(s, false);
|
CharSelectScreenMsg cssm = new CharSelectScreenMsg(s, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user