Skip to content

Commit

Permalink
ConfigSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
strubium committed Feb 17, 2024
1 parent c6de370 commit 285e9f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/mcjty/theoneprobe/Utilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import mcjty.theoneprobe.api.TextStyleClass;
import mcjty.theoneprobe.apiimpl.styles.ItemStyle;
import mcjty.theoneprobe.apiimpl.styles.LayoutStyle;
import mcjty.theoneprobe.config.Config;
import mcjty.theoneprobe.config.ConfigSetup;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.items.ItemHandlerHelper;
Expand Down Expand Up @@ -48,11 +48,11 @@ public static void addItemStack(@Nonnull List<ItemStack> stacks, @Nonnull Set<It
}

public static void showChestContents(@Nonnull IProbeInfo probeInfo, @Nonnull List<ItemStack> stacks, @Nonnull ProbeMode mode) {
IProbeInfo vertical = probeInfo.vertical(probeInfo.defaultLayoutStyle().borderColor(Config.chestContentsBorderColor).spacing(0));
IProbeInfo vertical = probeInfo.vertical(probeInfo.defaultLayoutStyle().borderColor(ConfigSetup.chestContentsBorderColor).spacing(0));
int rows = 0;
int idx = 0;

if (Tools.show(mode, Config.getRealConfig().getShowChestContentsDetailed()) && stacks.size() <= Config.showItemDetailThresshold) {
if (Tools.show(mode, ConfigSetup.getRealConfig().getShowChestContentsDetailed()) && stacks.size() <= ConfigSetup.showItemDetailThresshold) {
for (ItemStack stackInSlot : stacks) {
vertical.horizontal(new LayoutStyle().spacing(10).alignment(ElementAlignment.ALIGN_CENTER))
.item(stackInSlot, new ItemStyle().width(16).height(16))
Expand Down

0 comments on commit 285e9f5

Please sign in to comment.