Fix Detect Fluid Display (#1021)

This commit is contained in:
slprime authored and GitHub committed 2026-09-09 07:06:14 +03:00
1 parent f5fc4e704d
commit 5f6209366a
3 files changed
+3 -3

No files matched your search

@@ -571,7 +571,7 @@ public class NEIClientUtils extends NEIServerUtils {
return multiplier;
}
return StackInfo.itemStackToNBT(stack).hasKey("gtFluidName") ? 144 : stack.getMaxStackSize();
return StackInfo.isFluidDisplayItem(stack) ? 144 : stack.getMaxStackSize();
}
public static void drawRect(double left, double top, double width, double height, Color color) {
@@ -54,7 +54,7 @@ class ItemTreeSlot {
this.emptyStack = ingrItem.getItemStack(0);
}
this.isFluidDisplay = StackInfo.itemStackToNBT(this.emptyStack).hasKey("gtFluidName");
this.isFluidDisplay = StackInfo.isFluidDisplayItem(this.emptyStack);
this.isContainerItem = isContainerItem(this.emptyStack);
}
@@ -78,7 +78,7 @@ class StatsPanel extends ScrollContainer {
this.icon = icon;
this.recipeId = recipeId;
this.multiplier = multiplier;
this.isFluidDisplay = StackInfo.itemStackToNBT(stack).hasKey("gtFluidName");
this.isFluidDisplay = StackInfo.isFluidDisplayItem(stack);
this.info = this.recipeId != null ? handlerInfo(this.recipeId.getHandlerName()) : null;
this.w = SLOT_SIZE;
this.h = SLOT_SIZE;