13
0
geforkt von Mirrors/Paper

SPIGOT-6927: Fix default value of spawn-limits in Worlds

By: Doc <nachito94@msn.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2022-02-07 18:03:56 -03:00
Ursprung 314b83ffae
Commit 8b46bfaaa2

Datei anzeigen

@ -1501,7 +1501,7 @@ public class CraftWorld extends CraftRegionAccessor implements World {
Validate.notNull(spawnCategory, "SpawnCategory cannot be null");
Validate.isTrue(CraftSpawnCategory.isValidForLimits(spawnCategory), "SpawnCategory." + spawnCategory + " are not supported.");
int limit = spawnCategoryLimit.getInt(spawnCategory);
int limit = spawnCategoryLimit.getOrDefault(spawnCategory, -1);
if (limit < 0) {
limit = server.getSpawnLimit(spawnCategory);
}