Small tweaks to combined items text
This commit is contained in:
@@ -45,7 +45,7 @@ public class ItemGridFilter extends ItemBase {
|
||||
|
||||
ItemHandlerGridFilter items = new ItemHandlerGridFilter(stack);
|
||||
|
||||
ItemPattern.combineItems(tooltip, items.getFilteredItems());
|
||||
ItemPattern.combineItems(tooltip, false, items.getFilteredItems());
|
||||
}
|
||||
|
||||
public static int getCompare(ItemStack stack) {
|
||||
|
||||
@@ -35,16 +35,16 @@ public class ItemPattern extends ItemBase {
|
||||
if (GuiScreen.isShiftKeyDown() || isProcessing(pattern)) {
|
||||
tooltip.add(TextFormatting.YELLOW + I18n.format("misc.refinedstorage:pattern.inputs") + TextFormatting.RESET);
|
||||
|
||||
combineItems(tooltip, getInputs(pattern));
|
||||
combineItems(tooltip, true, getInputs(pattern));
|
||||
|
||||
tooltip.add(TextFormatting.YELLOW + I18n.format("misc.refinedstorage:pattern.outputs") + TextFormatting.RESET);
|
||||
}
|
||||
|
||||
combineItems(tooltip, getOutputs(pattern));
|
||||
combineItems(tooltip, true, getOutputs(pattern));
|
||||
}
|
||||
}
|
||||
|
||||
public static void combineItems(List<String> tooltip, ItemStack... stacks) {
|
||||
public static void combineItems(List<String> tooltip, boolean displayAmount, ItemStack... stacks) {
|
||||
Set<Integer> combinedIndices = new HashSet<>();
|
||||
|
||||
for (int i = 0; i < stacks.length; ++i) {
|
||||
@@ -61,9 +61,7 @@ public class ItemPattern extends ItemBase {
|
||||
}
|
||||
}
|
||||
|
||||
if (amount != 1) {
|
||||
data += " (" + amount + "x)";
|
||||
}
|
||||
data = (displayAmount ? (TextFormatting.WHITE + String.valueOf(amount) + " ") : "") + TextFormatting.GRAY + data;
|
||||
|
||||
tooltip.add(data);
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"parent": "item/generated",
|
||||
"textures": {
|
||||
"layer0": "refinedstorage:items/debug_storage_disk"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user