mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Fix command rewriter npe
This commit is contained in:
parent
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;
|
||||
|
Loading…
Reference in New Issue
Block a user