/*
 * Copyright  2014 - 2017 | Wurst-Imperium | All rights reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package net.wurstclient.features.mods;

import net.wurstclient.compatibility.WMinecraft;
import net.wurstclient.events.listeners.UpdateListener;

@Mod.Info(
	description = "Allows you to jump in mid-air.\n"
		+ "Looks as if you had a jetpack.",
	name = "Jetpack",
	tags = "jet pack",
	help = "Mods/Jetpack")
@Mod.Bypasses(ghostMode = false,
	latestNCP = false,
	olderNCP = false,
	antiCheat = false,
	mineplex = false)
public final class JetpackMod extends Mod implements UpdateListener
{
	@Override
	public void onEnable()
	{
		if(wurst.mods.flightMod.isEnabled())
			wurst.mods.flightMod.setEnabled(false);
		wurst.events.add(UpdateListener.class, this);
	}
	
	@Override
	public void onUpdate()
	{
		if(mc.gameSettings.keyBindJump.pressed)
			WMinecraft.getPlayer().jump();
	}
	
	@Override
	public void onDisable()
	{
		wurst.events.remove(UpdateListener.class, this);
	}
}

@@ -959,21 +959,22 @@
  void on
-Updat
+Disabl
 e()%0A%09%7B%0A%09
@@ -978,79 +978,54 @@
 %7B%0A%09%09
-if(mc.gameSettings.keyBindJump.pressed)%0A%09%09%09WMinecraft.getPlayer().jump(
+wurst.events.remove(UpdateListener.class, this
 );%0A%09
@@ -1046,38 +1046,37 @@
 %0A%09public void on
-Disabl
+Updat
 e()%0A%09%7B%0A%09%09wurst.e
@@ -1072,54 +1072,79 @@
 %7B%0A%09%09
-wurst.events.remove(UpdateListener.class, this
+if(mc.gameSettings.keyBindJump.pressed)%0A%09%09%09WMinecraft.getPlayer().jump(
 );%0A%09

Update JetpackMod