mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
Revert "#675: Fix redirected CommandNodes sometimes not being properly redirected"
This reverts commit cb701f6b63
.
This commit is contained in:
parent
cb701f6b63
commit
ffc2b251af
@ -140,20 +140,10 @@
|
||||
|
||||
argumentbuilder.requires((icompletionprovider) -> {
|
||||
return true;
|
||||
@@ -218,11 +297,15 @@
|
||||
}
|
||||
@@ -222,7 +301,7 @@
|
||||
argumentbuilder.redirect((CommandNode) map.get(argumentbuilder.getRedirect()));
|
||||
}
|
||||
|
||||
- if (argumentbuilder.getRedirect() != null) {
|
||||
- argumentbuilder.redirect((CommandNode) map.get(argumentbuilder.getRedirect()));
|
||||
+ // Craftbukkit start - fix redirected CommandNodes not being properly redirected if it is mapped after commandNode2
|
||||
+ CommandNode<CommandListenerWrapper> destination = commandnode2.getRedirect();
|
||||
+ if (destination != null) {
|
||||
+ this.a(destination, (CommandNode) destination.createBuilder().build(), commandlistenerwrapper, map);
|
||||
+ argumentbuilder.redirect((CommandNode) map.get(destination));
|
||||
}
|
||||
+ // Craftbukkit end
|
||||
|
||||
- CommandNode<ICompletionProvider> commandnode3 = argumentbuilder.build();
|
||||
+ CommandNode commandnode3 = argumentbuilder.build(); // CraftBukkit - decompile error
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user