Skip to content

Commit a41476d

Browse files
authored
Merge pull request #3363 from Multiverse/fix/warning-spam
Revert throw an error when trying to set spawn-rate or spawn-limit if…
2 parents 4004554 + fe75e49 commit a41476d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/java/org/mvplugins/multiverse/core/world/entity/SpawnCategoryConfig.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,20 +167,12 @@ private <N extends Node> N node(N node) {
167167
final ConfigNode<Integer> tickRate = node(ConfigNode.builder("tick-rate", Integer.class)
168168
.defaultValue(-1)
169169
.suggester(input -> List.of("-1", "10", "100", "400", "1000"))
170-
.validator(input -> config.getApplyEntitySpawnRate()
171-
? Try.success(null)
172-
: Try.failure(new IllegalStateException("Cannot set tick rate as 'apply-entity-spawn-rate' is false in config. " +
173-
"You can re-enable this option with '/mv config set apply-entity-spawn-rate true' command.")))
174170
.onSetValue((oldValue, newValue) -> applyConfigToWorld())
175171
.build());
176172

177173
final ConfigNode<Integer> spawnLimit = node(ConfigNode.builder("spawn-limit", Integer.class)
178174
.defaultValue(-1)
179175
.suggester(input -> List.of("-1", "10", "100", "400", "1000"))
180-
.validator(input -> config.getApplyEntitySpawnLimit()
181-
? Try.success(null)
182-
: Try.failure(new IllegalStateException("Cannot set spawn limit as 'apply-entity-spawn-limit' is false in config. " +
183-
"You can re-enable this option with '/mv config set apply-entity-spawn-limit true' command.")))
184176
.onSetValue((oldValue, newValue) -> applyConfigToWorld())
185177
.build());
186178

0 commit comments

Comments
 (0)