mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Updated GEO Scanner
This commit is contained in:
parent
965cdc8165
commit
2b89c41e3e
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user