Skip to content

Commit

Permalink
sidebar set_line: fix per_player compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 4, 2019
1 parent b1512e8 commit 878264f
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -246,7 +246,7 @@ public void execute(ScriptEntry scriptEntry) {
}

if (scriptEntry.dbCallShouldDebug()) {
Debug.report(scriptEntry, getName(), action.debug() + debug + ArgumentHelper.debugObj("players", players.debug()));
Debug.report(scriptEntry, getName(), action.debug() + debug + ArgumentHelper.debugObj("players", players.debuggable()));
}

switch (Action.valueOf(action.asString())) {
Expand Down Expand Up @@ -353,11 +353,11 @@ public void execute(ScriptEntry scriptEntry) {
Debug.echoError("Invalid player!");
continue;
}
if (scores == null || scores.size() == 0) {
if ((scores == null || scores.size() == 0) && perScores == null) {
Debug.echoError("Missing or invalid 'scores' parameter.");
return;
}
if (value == null || value.size() != scores.size()) {
if ((value == null || value.size() != scores.size()) && perValue == null) {
Debug.echoError("Missing or invalid 'values' parameter.");
return;
}
Expand Down

0 comments on commit 878264f

Please sign in to comment.