geforkt von Mirrors/Paper
Fix IllegalArgumentException for /paper mobcaps command (#7472)
Dieser Commit ist enthalten in:
Ursprung
aa0e21a2dc
Commit
b42ccc8248
@ -281,6 +281,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
+ // Paper start
|
||||
+ public static int globalLimitForCategory(final ServerLevel level, final MobCategory category, final int spawnableChunkCount) {
|
||||
+ if (category == MobCategory.MISC) {
|
||||
+ return -1;
|
||||
+ }
|
||||
+ final int categoryLimit = level.getWorld().getSpawnLimit(CraftSpawnCategory.toBukkit(category));
|
||||
+ if (categoryLimit < 1) {
|
||||
+ return categoryLimit;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren