Skip to content

Commit

Permalink
Fixed problem with JEI position rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
r8420 committed Sep 18, 2021
1 parent 6ae7a4d commit b91f0ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/at/ridgo8/moreoverlays/itemsearch/GuiUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public class GuiUtils {

public static void initUtil() {
try {
fieldLeft = ObfuscationReflectionHelper.findField(AbstractContainerScreen.class, "leftPos");
fieldLeft = ObfuscationReflectionHelper.findField(AbstractContainerScreen.class, "f_97735_");
fieldLeft.setAccessible(true);

fieldTop = ObfuscationReflectionHelper.findField(AbstractContainerScreen.class, "topPos");
fieldTop = ObfuscationReflectionHelper.findField(AbstractContainerScreen.class, "f_97736_");
fieldTop.setAccessible(true);
} catch (ObfuscationReflectionHelper.UnableToFindFieldException e) {
MoreOverlays.logger.error("Tried to load gui coordinate fields for reflection");
Expand Down

0 comments on commit b91f0ea

Please sign in to comment.