/*
 * 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 = "Prevents you from getting slowed down in webs.\n"
		+ "Note: This has nothing to do with websites.",
	name = "NoWeb",
	tags = "no web",
	help = "Mods/NoWeb")
@Mod.Bypasses(ghostMode = false)
public final class NoWebMod extends Mod implements UpdateListener
{
	@Override
	public void onEnable()
	{
		wurst.events.add(UpdateListener.class, this);
	}
	
	@Override
	public void onUpdate()
	{
		WMinecraft.getPlayer().isInWeb = false;
	}
	
	@Override
	public void onDisable()
	{
		wurst.events.remove(UpdateListener.class, this);
	}
}

@@ -820,21 +820,22 @@
  void on
-Updat
+Disabl
 e()%0A%09%7B%0A%09
@@ -839,46 +839,55 @@
 %7B%0A%09%09
-WMinecraft.getPlayer().isInWeb = false
+wurst.events.remove(UpdateListener.class, this)
 ;%0A%09%7D
@@ -907,38 +907,37 @@
 %0A%09public void on
-Disabl
+Updat
 e()%0A%09%7B%0A%09%09wurst.e
@@ -933,55 +933,46 @@
 %7B%0A%09%09
-wurst.events.remove(UpdateListener.class, this)
+WMinecraft.getPlayer().isInWeb = false
 ;%0A%09%7D

Update NoWebMod