Forked commands should execute FIFO
This commit is contained in:
parent
1369eaf2c3
commit
fdff548a64
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ import groovy.io.FileType
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
|
|
||||||
version = '0.1.7'
|
version = '0.1.8'
|
||||||
group = 'com.mojang'
|
group = 'com.mojang'
|
||||||
|
|
||||||
task wrapper(type: Wrapper) {
|
task wrapper(type: Wrapper) {
|
||||||
|
|
|
@ -93,7 +93,7 @@ public class CommandDispatcher<S> {
|
||||||
contexts.add(parse.getContext());
|
contexts.add(parse.getContext());
|
||||||
|
|
||||||
while (!contexts.isEmpty()) {
|
while (!contexts.isEmpty()) {
|
||||||
final CommandContextBuilder<S> builder = contexts.removeLast();
|
final CommandContextBuilder<S> builder = contexts.removeFirst();
|
||||||
final CommandContextBuilder<S> child = builder.getChild();
|
final CommandContextBuilder<S> child = builder.getChild();
|
||||||
final CommandContext<S> context = builder.build();
|
final CommandContext<S> context = builder.build();
|
||||||
if (child != null) {
|
if (child != null) {
|
||||||
|
|
Loading…
Reference in a new issue