From bdcc2f644bae6412b93c48558934122fd2de1eac Mon Sep 17 00:00:00 2001 From: bm01 Date: Tue, 3 Jul 2012 03:53:51 +0200 Subject: [PATCH] Removed unneeded instanceof --- .../java/com/gmail/nossr50/listeners/HardcoreListener.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java b/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java index ebeb6732c..dba79cc89 100644 --- a/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java @@ -22,10 +22,8 @@ public class HardcoreListener implements Listener { Player player = event.getEntity(); //Note this returns a Player object for this subevent if (!Permissions.getInstance().hardcoremodeBypass(player)) { - if (player.getKiller() instanceof Player) { - if (Config.getInstance().getHardcoreVampirismEnabled()) { - Hardcore.invokeVampirism(player.getKiller(), player); - } + if (Config.getInstance().getHardcoreVampirismEnabled()) { + Hardcore.invokeVampirism(player.getKiller(), player); } Hardcore.invokeStatPenalty(player);