fix client crash when accessing messenger
This commit is contained in:
1 parent
6618afa5ed
commit
2c777ea3ad
3 files changed
+5
-4
No files matched your search
@@ -570,7 +570,7 @@ public class SettingsManager
|
||||
return 1;
|
||||
}
|
||||
|
||||
public void inspectClientsideCommand(String string)
|
||||
public void inspectClientsideCommand(ServerCommandSource source, String string)
|
||||
{
|
||||
if (string.startsWith("/carpet "))
|
||||
{
|
||||
@@ -581,7 +581,7 @@ public class SettingsManager
|
||||
String strOption = res[2];
|
||||
if (rules.containsKey(setting) && rules.get(setting).isClient)
|
||||
{
|
||||
rules.get(setting).set(null, strOption);
|
||||
rules.get(setting).set(source, strOption);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user