1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Updated GEO Scanner

This commit is contained in:
TheBusyBiscuit 2019-09-26 15:23:27 +02:00
parent 965cdc8165
commit 2b89c41e3e

View File

@ -42,7 +42,7 @@ public final class GEOScanner {
for (OreGenResource resource: OreGenSystem.listResources()) { for (OreGenResource resource: OreGenSystem.listResources()) {
int supply = OreGenSystem.getSupplies(resource, chunk, true); int supply = OreGenSystem.getSupplies(resource, chunk, true);
ItemStack item = new CustomItem(resource.getIcon(), "&r" + resource.getName(), "&8\u21E8 &e" + supply + ' ' + resource.getMeasurementUnit()); ItemStack item = new CustomItem(resource.getItem(), "&r" + resource.getName(), "&8\u21E8 &e" + supply + ' ' + resource.getMeasurementUnit());
if (supply > 1) { if (supply > 1) {
item.setAmount(supply > item.getMaxStackSize() ? item.getMaxStackSize(): supply); item.setAmount(supply > item.getMaxStackSize() ? item.getMaxStackSize(): supply);
} }