Added island score block limits.

This commit is contained in:
WolfDW 2020-06-25 02:40:41 +00:00
parent b8db90a40c
commit 46495540c1

View File

@ -260,7 +260,14 @@ public class Levelling {
inventorySlot++;
long pointsEarned = materialAmount * pointsMultiplier;
long materialLimit = mainConfig.getFileConfiguration().getLong("Materials." + material + ".Limit", materialAmount);
long materialAmountCounted = Math.min(materialLimit, materialAmount);
if (materialLimit == -1)
materialAmountCounted = materialAmount;
long pointsEarned = materialAmountCounted * pointsMultiplier;
String name = skyblock.getLocalizationManager().getLocalizationFor(CompatibleMaterial.class).getLocale(materials);