Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Handle Error Cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenmai committed Oct 6, 2017
1 parent d51ea1c commit ed7e79d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public boolean matches(ScriptEventData data) {
}
}
}*/
else {
error("Please specify an area!");
}
return toArea && D2SpongeEventHelper.checkEntityType(entity.getInternal().getType(), data, this::error);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ public boolean matches(ScriptEventData data) {
}
}
}*/
else {
error("Please specify an area!");
}
return fromArea && D2SpongeEventHelper.checkEntityType(entity.getInternal().getType(), data, this::error);
}

Expand Down

0 comments on commit ed7e79d

Please sign in to comment.