Skip to content

Commit 63b61ce

Browse files
committed
fix: default value
1 parent a912bbe commit 63b61ce

File tree

1 file changed

+1
-1
lines changed
  • controller-runtime/src/main/kotlin/app/simplecloud/controller/runtime/reconciler

1 file changed

+1
-1
lines changed

controller-runtime/src/main/kotlin/app/simplecloud/controller/runtime/reconciler/GroupReconciler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class GroupReconciler(
5858
return
5959

6060
val serverCountToStop = fullyStartedServers.size - this.group.minOnlineCount
61-
val serversToConsider = if (this.group.properties["scale-ignore-players"]?.toBoolean() == true) {
61+
val serversToConsider = if (this.group.properties.getOrDefault("scale-ignore-players", "true").toBoolean()) {
6262
// If scale-ignore-players is true, consider all fully started servers
6363
fullyStartedServers
6464
} else {

0 commit comments

Comments
 (0)