Skip to content

Commit

Permalink
Fixed issue with empty/buggy array (punishment reason)
Browse files Browse the repository at this point in the history
  • Loading branch information
GodDragoner committed Feb 26, 2021
1 parent 16d271b commit c359e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dungeon/PunishmentBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
} else {
sendDungeonMessage("Let's see if there is any specific reasons to why you've been given punishment points this week...");

let reasons = getVar(VARIABLE.PUNISHMENT_REASONS, new java.util.ArrayList());
let reasons = tryGetArrayList(VARIABLE.PUNISHMENT_REASONS);

if (!reasons.isEmpty()) {
if (reasons.contains(PUNISHMENT_REASON.SKIPPING_PUNISHMENT_DAY)) {
Expand Down

0 comments on commit c359e94

Please sign in to comment.