/*
 * 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.minecraft.client.gui.GuiScreen;
import net.wurstclient.compatibility.WMinecraft;
import net.wurstclient.events.listeners.DeathListener;

@Mod.Info(description = "Automatically respawns you whenever you die.",
	name = "AutoRespawn",
	tags = "auto respawn",
	help = "Mods/AutoRespawn")
@Mod.Bypasses
public final class AutoRespawnMod extends Mod implements DeathListener
{
	@Override
	public void onEnable()
	{
		wurst.events.add(DeathListener.class, this);
	}
	
	@Override
	public void onDeath()
	{
		WMinecraft.getPlayer().respawnPlayer();
		mc.displayGuiScreen((GuiScreen)null);
	}
	
	@Override
	public void onDisable()
	{
		wurst.events.remove(DeathListener.class, this);
	}
}

@@ -315,51 +315,8 @@
 s;%0A%0A
-import net.minecraft.client.gui.GuiScreen;%0A
 impo
@@ -771,20 +771,22 @@
  onD
-eath
+isable
 ()%0A%09%7B%0A%09%09
 WMin
@@ -785,85 +785,53 @@
 %7B%0A%09%09
-WMinecraft.getPlayer().respawnPlayer();%0A%09%09mc.displayGuiScreen((GuiScreen)null
+wurst.events.remove(DeathListener.class, this
 );%0A%09
@@ -857,38 +857,36 @@
 lic void onD
-isable
+eath
 ()%0A%09%7B%0A%09%09
 wurst.events
@@ -877,53 +877,74 @@
 %7B%0A%09%09
-wurst.events.remove(DeathListener.class, this
+WMinecraft.getPlayer().respawnPlayer();%0A%09%09mc.displayGuiScreen(null
 );%0A%09

Update AutoRespawnMod