geforkt von Mirrors/Paper
#675: Fix redirected CommandNodes sometimes not being properly redirected
Dieser Commit ist enthalten in:
Ursprung
c9d7c16b5f
Commit
cb701f6b63
@ -140,9 +140,19 @@
|
||||
|
||||
argumentbuilder.requires((icompletionprovider) -> {
|
||||
return true;
|
||||
@@ -222,7 +301,7 @@
|
||||
argumentbuilder.redirect((CommandNode) map.get(argumentbuilder.getRedirect()));
|
||||
@@ -218,11 +297,15 @@
|
||||
}
|
||||
}
|
||||
|
||||
- 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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren