Vampirism fix

This commit is contained in:
nossr50 2012-08-30 09:16:08 -07:00
parent 6f073250f4
commit c1d6e79a41
2 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@ Version 1.3.11
+ Added compatibility for pvp-prevention plugins for Serrated Strikes
= Fixed bug where mcMMO could throw NPE errors if trees cut down were from a custom mod and had an id of 17
= Fixed dupe bug where mcMMO would ignore other block-protection plugins for various abilities
= Fixed NPE with hardcore mode's vampirism
Version 1.3.10
+ Added 1.3.1 compatibility

View File

@ -22,7 +22,7 @@ public class HardcoreListener implements Listener {
Player player = event.getEntity(); //Note this returns a Player object for this subevent
if (!Permissions.getInstance().hardcoremodeBypass(player)) {
if (Config.getInstance().getHardcoreVampirismEnabled()) {
if (player.getKiller() != null && Config.getInstance().getHardcoreVampirismEnabled()) {
Hardcore.invokeVampirism(player.getKiller(), player);
}