Skip to content

Commit 587f69f

Browse files
authored
Prevent updating mod status for options not yet supported by the API (#252)
1 parent 4861935 commit 587f69f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)