quick fix : Access static member via instance reference

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 983ca22d97
commit b1c2569992
1 file changed
+4 -5
@@ -2,14 +2,13 @@ package tconstruct.armor;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
import cpw.mods.fml.relauncher.*;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.Minecraft;
import tconstruct.client.ArmorControls;
public class ArmorTickHandler {
Minecraft mc = Minecraft.getMinecraft();
ArmorControls controlInstance = ((ArmorProxyClient) TinkerArmor.proxy).controlInstance;
private final Minecraft mc = Minecraft.getMinecraft();
@SideOnly(Side.CLIENT)
@SubscribeEvent
@@ -17,7 +16,7 @@ public class ArmorTickHandler {
/*TinkerWorld.oreBerry.setGraphicsLevel(Blocks.leaves.field_150121_P);
TinkerWorld.oreBerrySecond.setGraphicsLevel(Blocks.leaves.field_150121_P);
TinkerWorld.slimeLeaves.setGraphicsLevel(Blocks.leaves.field_150121_P);*/
if (mc.thePlayer != null && mc.thePlayer.onGround) controlInstance.landOnGround();
if (mc.thePlayer != null && mc.thePlayer.onGround) ArmorProxyClient.controlInstance.landOnGround();
}
/*