Skip to content

Commit

Permalink
Merge pull request #6 from GTNewHorizons/dev
Browse files Browse the repository at this point in the history
Fix circuit programming
  • Loading branch information
Caedis authored Jun 9, 2023
2 parents a007642 + 6eb8657 commit 5e0a4a2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.*;
import java.util.List;

import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.FontRenderer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
Expand Down Expand Up @@ -63,6 +64,7 @@ interface ItemHandler {
}

public static void Render(FontRenderer fontRenderer, ItemStack stack, int xPosition, int yPosition, float zLevel) {
if (fontRenderer == null && (fontRenderer = Minecraft.getMinecraft().fontRenderer) == null) return;
assert stack.getItem() != null;
ItemStackOverlay.DurabilityOverlay durabilityOverlay = null;
ItemStackOverlay.ChargeOverlay chargeOverlay = null;
Expand Down

0 comments on commit 5e0a4a2

Please sign in to comment.