Removed unneeded instanceof

This commit is contained in:
bm01 2012-07-03 03:53:51 +02:00
parent c3ba54a0ce
commit bdcc2f644b

View File

@ -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);