1.20.1 backport

This commit is contained in:
Oth3r 2025-05-20 13:02:02 -05:00
commit 4ff646e99b

View file

@ -191,7 +191,7 @@ public class Events {
if (result.equals(ActionResult.CONSUME)) {
try {
CommandDispatcher<ServerCommandSource> dispatcher = Data.getServer().getCommandSource().getDispatcher();
CommandDispatcher<ServerCommandSource> dispatcher = Data.getServer().getCommandManager().getDispatcher();
ParseResults<ServerCommandSource> parse = dispatcher.parse("sit", player.getCommandSource());
dispatcher.execute(parse);
} catch (CommandSyntaxException e) {