Skip to content

Commit 82642ba

Browse files
committed
Prevent updating mod status for options not yet supported by the API
1 parent 4861935 commit 82642ba

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

common/src/main/java/com/lunarclient/apollo/module/modsettings/ModSettingModuleImpl.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,11 @@ public void updateOptions(ApolloPlayer player, Map<String, Value> properties, bo
117117
for (Map.Entry<String, Value> entry : properties.entrySet()) {
118118
Option<?, ?, ?> option = statusOptions.getRegistry().get(entry.getKey());
119119

120+
// Option exists on the client but doesn't exist in the API yet.
121+
if (option == null) {
122+
continue;
123+
}
124+
120125
Object unwrappedValue = NetworkOptions.unwrapValue(
121126
entry.getValue(),
122127
option.getTypeToken().getType()

0 commit comments

Comments
 (0)