Merge pull request #856 from vlad20012/fix-851

Fix #851
This commit is contained in:
Blood-Asp 2017-01-19 12:38:04 +01:00 committed by GitHub
commit e95e832aba

View file

@ -338,7 +338,7 @@ public class ModularArmor_Item extends ItemArmor implements ISpecialArmor, IGogg
if (stepup > 1) { if (stepup > 1) {
aPlayer.stepHeight = 1.0f; aPlayer.stepHeight = 1.0f;
} }
if (GameSettings.isKeyDown(Minecraft.getMinecraft().gameSettings.keyBindJump)) { if (aWorld.isRemote && GameSettings.isKeyDown(Minecraft.getMinecraft().gameSettings.keyBindJump)) {
if (stepup > 0 && jumpticks > 0) { if (stepup > 0 && jumpticks > 0) {
if (data.maxWeight > 2000) { if (data.maxWeight > 2000) {
stepup *= 2000.0D / data.maxWeight; stepup *= 2000.0D / data.maxWeight;