mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 03:49:29 +00:00
Fix armorcontrols having two separate instances. Fixes doublejump issue #1108
This commit is contained in:
1 parent
ffcd7f26b4
commit
e37b32234f
4 files changed
+13
-9
No files matched your search
@@ -47,6 +47,13 @@ public class ArmorProxyClient extends ArmorProxyCommon
|
||||
public static KnapsackInventory knapsack = new KnapsackInventory();
|
||||
public static ArmorExtended armorExtended = new ArmorExtended();
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
controlInstance = new ArmorControls();
|
||||
FMLCommonHandler.instance().bus().register(controlInstance);
|
||||
MinecraftForge.EVENT_BUS.register(new TabRegistry());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize ()
|
||||
{
|
||||
@@ -148,7 +155,6 @@ public class ArmorProxyClient extends ArmorProxyCommon
|
||||
@Override
|
||||
public void registerKeys ()
|
||||
{
|
||||
controlInstance = new ArmorControls();
|
||||
uploadKeyBindingsToGame(Minecraft.getMinecraft().gameSettings, controlInstance);
|
||||
|
||||
TabRegistry.registerTab(new InventoryTabVanilla());
|
||||
|
||||
Reference in new issue
Block a user