Merge pull request #23 from GTNewHorizons/amountToCraft

Adapt to AE2 change
This commit is contained in:
Martin Robertz authored and GitHub committed 2022-06-21 15:09:17 +02:00
commit a968a90f78
2 files changed
+7 -7

No files matched your search

+4 -4
View File
@@ -1,10 +1,10 @@
// Add your dependencies here
dependencies {
compile("com.github.GTNewHorizons:NotEnoughItems:2.1.22-GTNH:dev")
compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.1:dev")
compile("com.github.GTNewHorizons:CodeChickenCore:1.1.3:dev")
compile("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-70-GTNH:dev")
compile("com.github.GTNewHorizons:NotEnoughItems:2.2.15-GTNH:dev")
compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.4:dev")
compile("com.github.GTNewHorizons:CodeChickenCore:1.1.5:dev")
compile("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-86-GTNH:dev")
compile("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev")
@@ -2,12 +2,12 @@ package thaumicenergistics.client.gui;
import java.lang.reflect.Field;
import appeng.client.gui.implementations.GuiCraftAmount;
import appeng.client.gui.widgets.GuiNumberBox;
import appeng.client.gui.widgets.GuiTabButton;
import appeng.core.localization.GuiText;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiTextField;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import thaumicenergistics.api.grid.ICraftingIssuerHost;
@@ -46,7 +46,7 @@ public class GuiCraftAmountBridge
/**
* The amount-to-craft text box.
*/
protected GuiNumberBox amountToCraft;
protected GuiTextField amountToCraft;
public GuiCraftAmountBridge( final EntityPlayer player, final ICraftingIssuerHost craftingHost )
{
@@ -124,7 +124,7 @@ public class GuiCraftAmountBridge
{
atcField = GuiCraftAmount.class.getDeclaredField( "amountToCraft" );
atcField.setAccessible( true );
this.amountToCraft = (GuiNumberBox)atcField.get( this );
this.amountToCraft = (GuiTextField)atcField.get( this );
}
catch( Exception e )
{