Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Fix command rewriter npe
Dieser Commit ist enthalten in:
Ursprung
1d5ae0e3e0
Commit
48a7fdc1d1
@ -170,7 +170,7 @@ public class CommandRewriter {
|
||||
* @return new argument type, or null if it should be removed
|
||||
*/
|
||||
public @Nullable String handleArgumentType(String argumentType) {
|
||||
if (protocol.getMappingData().getArgumentTypeMappings() != null) {
|
||||
if (protocol.getMappingData() != null && protocol.getMappingData().getArgumentTypeMappings() != null) {
|
||||
return protocol.getMappingData().getArgumentTypeMappings().mappedIdentifier(argumentType);
|
||||
}
|
||||
return argumentType;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren