mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-19 16:03:22 +02:00
1.20.1 backport
This commit is contained in:
parent
147e3410ff
commit
4ff646e99b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue