add safety check

This commit is contained in:
Ryder Belserion 2024-10-10 14:26:58 -04:00
parent da661466d6
commit 7d815a1d9f
No known key found for this signature in database

View File

@ -97,6 +97,10 @@ public class AuctionsMenu extends Holder {
}
for (final String key : this.options) {
if (!this.config.contains("Settings.GUISettings.OtherSettings." + key)) {
continue;
}
if (this.config.contains("Settings.GUISettings.OtherSettings." + key + ".Toggle")) {
if (!this.config.getBoolean("Settings.GUISettings.OtherSettings." + key + ".Toggle")) {
continue;