Skip to content

Commit

Permalink
add back functions removed by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
Glease committed Oct 15, 2023
1 parent 7074d36 commit 53d04a8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions src/main/java/net/glease/tc4tweak/asm/ASMCallhook.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package net.glease.tc4tweak.asm;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.WeakHashMap;
Expand All @@ -11,7 +10,6 @@
import net.glease.tc4tweak.ClientProxy;
import net.glease.tc4tweak.ClientUtils;
import net.glease.tc4tweak.ConfigurationHandler;
import net.glease.tc4tweak.modules.hudNotif.HUDNotification;
import net.glease.tc4tweak.modules.researchBrowser.BrowserPaging;
import net.glease.tc4tweak.modules.researchBrowser.DrawResearchBrowserBorders;
import net.minecraft.client.particle.EffectRenderer;
Expand All @@ -26,7 +24,6 @@
import thaumcraft.client.gui.GuiResearchBrowser;
import thaumcraft.client.gui.GuiResearchRecipe;
import thaumcraft.client.gui.GuiResearchTable;
import thaumcraft.client.lib.PlayerNotifications;
import thaumcraft.client.lib.UtilsFX;
import thaumcraft.common.tiles.TileMagicWorkbench;

Expand Down Expand Up @@ -194,6 +191,26 @@ public static int getTabIconDistance() {
return ConfigurationHandler.INSTANCE.getBrowserWidth() + 24;
}

@Callhook(adder = GuiResearchBrowserVisitor.class, module = ASMConstants.Modules.BiggerResearchBrowser)
public static int getNewGuiMapTop(int oldVal) {
return (int) (oldVal - 85 * (ConfigurationHandler.INSTANCE.getBrowserScale() - 1));
}

@Callhook(adder = GuiResearchBrowserVisitor.class, module = ASMConstants.Modules.BiggerResearchBrowser)
public static int getNewGuiMapLeft(int oldVal) {
return (int) (oldVal - 112 * (ConfigurationHandler.INSTANCE.getBrowserScale() - 1));
}

@Callhook(adder = GuiResearchBrowserVisitor.class, module = ASMConstants.Modules.BiggerResearchBrowser)
public static int getNewGuiMapBottom(int oldVal) {
return (int) (oldVal - 112 * (ConfigurationHandler.INSTANCE.getBrowserScale() - 1));
}

@Callhook(adder = GuiResearchBrowserVisitor.class, module = ASMConstants.Modules.BiggerResearchBrowser)
public static int getNewGuiMapRight(int oldVal) {
return (int) (oldVal - 61 * (ConfigurationHandler.INSTANCE.getBrowserScale() - 1));
}

@Callhook(adder = GuiResearchBrowserVisitor.class, module = ASMConstants.Modules.BiggerResearchBrowser)
public static int getTabPerSide() {
return BrowserPaging.getTabPerSide();
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.16
1.5.17

0 comments on commit 53d04a8

Please sign in to comment.