Fix startIfElementsAtLeast not being saved; resolves #638

This commit is contained in:
Daniel Saukel 2020-04-04 17:56:30 +02:00
parent 205a284065
commit 2bf5910222

View File

@ -72,13 +72,10 @@ public abstract class JoinSign extends GlobalProtection {
} else if (config.contains("maxPlayersPerGroup")) {
maxElements = config.getInt("maxPlayersPerGroup");
}
startIfElementsAtLeast = config.getInt("startIfElementsAtLeast", -1);
verticalSigns = (int) Math.ceil((float) (1 + maxElements) / 4);
if (startIfElementsAtLeast > 0 && startIfElementsAtLeast <= maxElements) {
startIfElementsAtLeast = config.getInt("startIfElementsAtLeast");
}
update();
}