Creative armor to inventory fix
This commit is contained in:
parent
c869c2a73d
commit
7772d7a1e3
@ -23,8 +23,7 @@ import mods.tinker.tconstruct.library.*;
|
||||
import mods.tinker.tconstruct.library.client.*;
|
||||
import mods.tinker.tconstruct.library.crafting.*;
|
||||
import mods.tinker.tconstruct.library.tools.*;
|
||||
import mods.tinker.tconstruct.util.player.*
|
||||
;
|
||||
import mods.tinker.tconstruct.util.player.*;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@ -124,6 +123,8 @@ public class TProxyClient extends TProxyCommon
|
||||
{
|
||||
if (mc == null)
|
||||
mc = Minecraft.getMinecraft();
|
||||
if (mc.currentScreen.getClass() == GuiInventory.class)
|
||||
{
|
||||
GuiInventory gui = (GuiInventory) mc.currentScreen;
|
||||
int cornerX = (gui.width - gui.xSize) / 2;
|
||||
int cornerY = (gui.height - gui.ySize) / 2;
|
||||
@ -135,6 +136,7 @@ public class TProxyClient extends TProxyCommon
|
||||
repairButton = new InventoryTab(3, cornerX + 28, cornerY - 28, new ItemStack(Item.plateDiamond), 1);
|
||||
gui.buttonList.add(repairButton);
|
||||
}
|
||||
}
|
||||
|
||||
public void registerTickHandler ()
|
||||
{
|
||||
@ -267,7 +269,6 @@ public class TProxyClient extends TProxyCommon
|
||||
TConstructClientRegistry.registerManualIcon("copperingot", new ItemStack(TContent.materials, 1, 9));
|
||||
TConstructClientRegistry.registerManualIcon("steelingot", new ItemStack(TContent.materials, 1, 16));
|
||||
|
||||
|
||||
//Tool parts
|
||||
TConstructClientRegistry.registerManualIcon("pickhead", new ItemStack(TContent.pickaxeHead, 1, 2));
|
||||
TConstructClientRegistry.registerManualIcon("shovelhead", new ItemStack(TContent.shovelHead, 1, 2));
|
||||
@ -349,10 +350,9 @@ public class TProxyClient extends TProxyCommon
|
||||
mossycobble, mossycobble, mossycobble);
|
||||
TConstructClientRegistry.registerManualLargeRecipe("lavacrystal", new ItemStack(TContent.materials, 1, 7), blazerod, firecharge, blazerod, firecharge, new ItemStack(Item.bucketLava),
|
||||
firecharge, blazerod, firecharge, blazerod);
|
||||
TConstructClientRegistry.registerManualLargeRecipe("silkycloth", silkyCloth, string, string, string, string, new ItemStack(TContent.materials, 1, 24),
|
||||
string, string, string, string);
|
||||
TConstructClientRegistry.registerManualLargeRecipe("silkyjewel", new ItemStack(TContent.materials, 1, 26), null, silkyCloth, null, silkyCloth, new ItemStack(Item.emerald),
|
||||
silkyCloth, null, silkyCloth, null);
|
||||
TConstructClientRegistry.registerManualLargeRecipe("silkycloth", silkyCloth, string, string, string, string, new ItemStack(TContent.materials, 1, 24), string, string, string, string);
|
||||
TConstructClientRegistry.registerManualLargeRecipe("silkyjewel", new ItemStack(TContent.materials, 1, 26), null, silkyCloth, null, silkyCloth, new ItemStack(Item.emerald), silkyCloth, null,
|
||||
silkyCloth, null);
|
||||
|
||||
TConstructClientRegistry.registerManualSmallRecipe("grout", grout, sand, gravel, null, clay);
|
||||
TConstructClientRegistry.registerManualFurnaceRecipe("searedbrick", searedbrick, grout);
|
||||
|
Loading…
x
Reference in New Issue
Block a user