Permalink
Browse files

Fixed another error.

  • Loading branch information...
me4502 committed Jul 24, 2018
1 parent e940830 commit 3189b1ac137e8173052ad8884adb66e117c8d079
@@ -449,7 +449,6 @@ public void onDamageEntity(DamageEntityEvent event) {
RegionQuery query = WorldGuard.getInstance().getPlatform().getRegionContainer().createQuery();
Player playerAttacker = event.getCause().getFirstPlayer();
LocalPlayer localAttacker = WorldGuardPlugin.inst().wrapPlayer(playerAttacker);
boolean canDamage;
String what;
@@ -474,6 +473,7 @@ public void onDamageEntity(DamageEntityEvent event) {
/* PVP */
} else if (pvp) {
LocalPlayer localAttacker = WorldGuardPlugin.inst().wrapPlayer(playerAttacker);
Player defender = (Player) event.getEntity();
// if defender is an NPC

0 comments on commit 3189b1a

Please sign in to comment.