mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-25 14:34:22 +00:00
Enable Capes/Format Code
This commit is contained in:
1 parent
612f7a9ca1
commit
56d348dcc7
9 files changed
+33
-31
No files matched your search
@@ -96,7 +96,7 @@ public class TClientEvents
|
||||
//public static int right_height = 39;
|
||||
Random rand = new Random();
|
||||
int updateCounter = 0;
|
||||
|
||||
|
||||
GameSettings gs = Minecraft.getMinecraft().gameSettings;
|
||||
|
||||
/* HUD */
|
||||
|
||||
@@ -13,7 +13,8 @@ public class TClientTickHandler
|
||||
{
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
|
||||
TControls controlInstance = ((TProxyClient)TConstruct.proxy).controlInstance;
|
||||
TControls controlInstance = ((TProxyClient) TConstruct.proxy).controlInstance;
|
||||
|
||||
public TClientTickHandler()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -70,22 +70,22 @@ public class TControls extends TKeyHandler
|
||||
if (mc.thePlayer.capabilities.isCreativeMode)
|
||||
return;
|
||||
|
||||
if (jumping && midairJumps >0)
|
||||
{
|
||||
mc.thePlayer.motionY = 0.42D;
|
||||
mc.thePlayer.fallDistance = 0;
|
||||
if (jumping && midairJumps > 0)
|
||||
{
|
||||
mc.thePlayer.motionY = 0.42D;
|
||||
mc.thePlayer.fallDistance = 0;
|
||||
|
||||
if (mc.thePlayer.isPotionActive(Potion.jump))
|
||||
{
|
||||
mc.thePlayer.motionY += (double) ((float) (mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1F);
|
||||
}
|
||||
if (mc.thePlayer.isPotionActive(Potion.jump))
|
||||
{
|
||||
mc.thePlayer.motionY += (double) ((float) (mc.thePlayer.getActivePotionEffect(Potion.jump).getAmplifier() + 1) * 0.1F);
|
||||
}
|
||||
|
||||
midairJumps --;
|
||||
resetFallDamage(mc.thePlayer.getDisplayName());
|
||||
}
|
||||
midairJumps--;
|
||||
resetFallDamage(mc.thePlayer.getDisplayName());
|
||||
}
|
||||
|
||||
if (!jumping)
|
||||
jumping = mc.thePlayer.isAirBorne;
|
||||
if (!jumping)
|
||||
jumping = mc.thePlayer.isAirBorne;
|
||||
}
|
||||
}
|
||||
/*else if (kb == stiltsKey) //Stilts
|
||||
|
||||
Reference in new issue
Block a user