More compile fixes

This commit is contained in:
Noah van der Aa
2023-12-06 19:21:23 +01:00
parent d79a08990a
commit 9734050cf0
5 changed files with 12 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
command = event.getCommand();
String[] args = command.split(" ");
+ if (args.length == 0) return 0; // Paper - empty commands shall not be dispatched
+ if (args.length == 0) return; // Paper - empty commands shall not be dispatched
String cmd = args[0];
if (cmd.startsWith("minecraft:")) cmd = cmd.substring("minecraft:".length());