/*
 * 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.events.listeners.UpdateListener;
import net.wurstclient.features.Feature;

@Mod.Info(
	description = "Allows you to place blocks 5 times faster.\n"
		+ "Tip: This can speed up AutoBuild.",
	name = "FastPlace",
	tags = "fast place",
	help = "Mods/FastPlace")
@Mod.Bypasses
public final class FastPlaceMod extends Mod implements UpdateListener
{
	@Override
	public Feature[] getSeeAlso()
	{
		return new Feature[]{wurst.mods.fastBreakMod, wurst.mods.buildRandomMod,
			wurst.mods.autoBuildMod};
	}
	
	@Override
	public void onEnable()
	{
		wurst.events.add(UpdateListener.class, this);
	}
	
	@Override
	public void onUpdate()
	{
		mc.rightClickDelayTimer = 0;
	}
	
	@Override
	public void onDisable()
	{
		wurst.events.remove(UpdateListener.class, this);
	}
}

@@ -949,21 +949,22 @@
  void on
-Updat
+Disabl
 e()%0A%09%7B%0A%09
@@ -968,35 +968,55 @@
 %7B%0A%09%09
-mc.rightClickDelayTimer = 0
+wurst.events.remove(UpdateListener.class, this)
 ;%0A%09%7D
@@ -1036,38 +1036,37 @@
 %0A%09public void on
-Disabl
+Updat
 e()%0A%09%7B%0A%09%09wurst.e
@@ -1062,55 +1062,35 @@
 %7B%0A%09%09
-wurst.events.remove(UpdateListener.class, this)
+mc.rightClickDelayTimer = 0
 ;%0A%09%7D

Update FastPlaceMod