mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-09 12:10:08 +01:00
Added island score block limits.
This commit is contained in:
parent
b8db90a40c
commit
46495540c1
@ -260,7 +260,14 @@ public class Levelling {
|
|||||||
|
|
||||||
inventorySlot++;
|
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);
|
String name = skyblock.getLocalizationManager().getLocalizationFor(CompatibleMaterial.class).getLocale(materials);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user