SPIGOT-4024: Improve interactions of Vanilla tab completion, and also reloads

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-07-21 11:20:38 +10:00
parent ee4832c2ce
commit 5bc15c40d8
4 changed files with 35 additions and 22 deletions

View File

@@ -31,10 +31,10 @@
+ public java.util.Queue<Runnable> processQueue = new java.util.concurrent.ConcurrentLinkedQueue<Runnable>();
+ public int autosavePeriod;
+ public File bukkitDataPackFolder;
+ public CommandDispatcher vanillaCommandDispatcher;
+ // CraftBukkit end
+
+ public MinecraftServer(OptionSet options, Proxy proxy, DataFixer datafixer, CommandDispatcher commanddispatcher, YggdrasilAuthenticationService yggdrasilauthenticationservice, MinecraftSessionService minecraftsessionservice, GameProfileRepository gameprofilerepository, UserCache usercache) {
+ this.commandDispatcher = commanddispatcher; // CraftBukkit
this.ac = new ResourceManager(EnumResourcePackType.SERVER_DATA);
this.resourcePackRepository = new ResourcePackRepository(ResourcePackLoader::new);
this.ag = new CraftingManager();
@@ -43,7 +43,7 @@
this.am = new CustomFunctionData(this);
this.d = proxy;
- this.commandDispatcher = commanddispatcher;
+ // this.commandDispatcher = commanddispatcher; // CraftBukkit - moved up
+ this.commandDispatcher = this.vanillaCommandDispatcher = commanddispatcher; // CraftBukkit
this.U = yggdrasilauthenticationservice;
this.V = minecraftsessionservice;
this.W = gameprofilerepository;