diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-07-06 18:51:18 +0100 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2022-07-06 18:51:18 +0100 |
| commit | c9a47f73f58312f5f7af4c8c3faaaac2c0d4ef0b (patch) | |
| tree | 64f278067027e8c7e143bd66972249b747a56520 /common/src/main/java | |
| parent | 12ebaa52428f0b26c55736f67986d07494c75420 (diff) | |
Add wildcard to debug command
Diffstat (limited to 'common/src/main/java')
| -rw-r--r-- | common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java b/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java index 19115f79..af387906 100644 --- a/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java +++ b/common/src/main/java/com/leonardobishop/quests/common/player/QPlayerPreferences.java @@ -23,7 +23,7 @@ public class QPlayerPreferences { } public DebugType getDebug(String questId) { - return debug.get(questId); + return debug.getOrDefault(questId, debug.get("*")); } public void setDebug(String questId, DebugType debugType) { |
