Skip to content

Commit

Permalink
remove loop
Browse files Browse the repository at this point in the history
  • Loading branch information
slprime committed Feb 22, 2024
1 parent 4535481 commit 154333c
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
import com.gtnewhorizons.modularui.mixins.GuiContainerAccessor;

import codechicken.nei.guihook.GuiContainerManager;
import codechicken.nei.guihook.IContainerDrawHandler;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

Expand Down Expand Up @@ -608,13 +607,10 @@ && getScreen().inventorySlots.canDragIntoSlot(slotIn)) {
protected void renderSlotUnderlayNEI(Slot slotIn) {
final int xDisplayPosition = slotIn.xDisplayPosition;
final int yDisplayPosition = slotIn.yDisplayPosition;
final ModularGui screen = getScreen();
slotIn.xDisplayPosition = 1;
slotIn.yDisplayPosition = 1;

for (IContainerDrawHandler drawHandler : GuiContainerManager.drawHandlers) {
drawHandler.renderSlotUnderlay(screen, slotIn);
}
GuiContainerManager.getManager().renderSlotUnderlay(slotIn);

slotIn.xDisplayPosition = xDisplayPosition;
slotIn.yDisplayPosition = yDisplayPosition;
Expand All @@ -626,13 +622,10 @@ protected void renderSlotUnderlayNEI(Slot slotIn) {
protected void renderSlotOverlayNEI(Slot slotIn) {
final int xDisplayPosition = slotIn.xDisplayPosition;
final int yDisplayPosition = slotIn.yDisplayPosition;
final ModularGui screen = getScreen();
slotIn.xDisplayPosition = 1;
slotIn.yDisplayPosition = 1;

for (IContainerDrawHandler drawHandler : GuiContainerManager.drawHandlers) {
drawHandler.renderSlotOverlay(screen, slotIn);
}
GuiContainerManager.getManager().renderSlotOverlay(slotIn);

slotIn.xDisplayPosition = xDisplayPosition;
slotIn.yDisplayPosition = yDisplayPosition;
Expand Down

0 comments on commit 154333c

Please sign in to comment.