mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-08 03:40:04 +01:00
Fix startIfElementsAtLeast not being saved; resolves #638
This commit is contained in:
parent
205a284065
commit
2bf5910222
@ -72,13 +72,10 @@ public abstract class JoinSign extends GlobalProtection {
|
|||||||
} else if (config.contains("maxPlayersPerGroup")) {
|
} else if (config.contains("maxPlayersPerGroup")) {
|
||||||
maxElements = config.getInt("maxPlayersPerGroup");
|
maxElements = config.getInt("maxPlayersPerGroup");
|
||||||
}
|
}
|
||||||
|
startIfElementsAtLeast = config.getInt("startIfElementsAtLeast", -1);
|
||||||
|
|
||||||
verticalSigns = (int) Math.ceil((float) (1 + maxElements) / 4);
|
verticalSigns = (int) Math.ceil((float) (1 + maxElements) / 4);
|
||||||
|
|
||||||
if (startIfElementsAtLeast > 0 && startIfElementsAtLeast <= maxElements) {
|
|
||||||
startIfElementsAtLeast = config.getInt("startIfElementsAtLeast");
|
|
||||||
}
|
|
||||||
|
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user