Skip to content

Commit

Permalink
Fixed another error.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Aug 13, 2018
1 parent e940830 commit 3189b1a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 3189b1a

Please sign in to comment.