mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Fix mobs not spawning when using an older config (#9793)
This commit is contained in:
@@ -4606,6 +4606,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
@@ -0,0 +0,0 @@
|
||||
+package io.papermc.paper.configuration.type.number;
|
||||
+
|
||||
+import com.google.common.base.Preconditions;
|
||||
+import com.mojang.logging.LogUtils;
|
||||
+import java.util.OptionalInt;
|
||||
+import java.util.function.Function;
|
||||
@@ -4669,7 +4670,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ @Override
|
||||
+ protected boolean belowZero(final OptionalInt value) {
|
||||
+ return false;
|
||||
+ Preconditions.checkArgument(value.isPresent());
|
||||
+ return value.getAsInt() < 0;
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
|
Reference in New Issue
Block a user