75 Zeilen
3.8 KiB
Diff
75 Zeilen
3.8 KiB
Diff
Index: src/main/java/net/minecraft/server/CommandDispatcher.java
|
|
IDEA additional info:
|
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
|
<+>UTF-8
|
|
===================================================================
|
|
diff --git a/src/main/java/net/minecraft/server/CommandDispatcher.java b/src/main/java/net/minecraft/server/CommandDispatcher.java
|
|
--- a/src/main/java/net/minecraft/server/CommandDispatcher.java (revision 603055e43a2a75318d98e6cab4d9def2bb35956d)
|
|
+++ b/src/main/java/net/minecraft/server/CommandDispatcher.java (date 1618244591676)
|
|
@@ -35,7 +35,7 @@
|
|
// CraftBukkit start
|
|
public final CommandDispatcher init(boolean flag) {
|
|
CommandAdvancement.a(this.b);
|
|
- CommandExecute.a(this.b);
|
|
+ //CommandExecute.a(this.b); //Steamwar
|
|
CommandBossBar.a(this.b);
|
|
CommandClear.a(this.b);
|
|
CommandClone.a(this.b);
|
|
@@ -48,7 +48,7 @@
|
|
CommandMe.a(this.b);
|
|
CommandEnchant.a(this.b);
|
|
CommandXp.a(this.b);
|
|
- CommandFill.a(this.b);
|
|
+ //CommandFill.a(this.b); //Steamwar
|
|
CommandForceload.a(this.b);
|
|
CommandFunction.a(this.b);
|
|
CommandGamemode.a(this.b);
|
|
Index: src/main/java/net/minecraft/server/MinecraftServer.java
|
|
IDEA additional info:
|
|
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
|
|
<+>UTF-8
|
|
===================================================================
|
|
diff --git a/src/main/java/net/minecraft/server/MinecraftServer.java b/src/main/java/net/minecraft/server/MinecraftServer.java
|
|
--- a/src/main/java/net/minecraft/server/MinecraftServer.java (revision 603055e43a2a75318d98e6cab4d9def2bb35956d)
|
|
+++ b/src/main/java/net/minecraft/server/MinecraftServer.java (date 1618244782802)
|
|
@@ -187,12 +187,21 @@
|
|
public final SlackActivityAccountant slackActivityAccountant = new SlackActivityAccountant();
|
|
// Spigot end
|
|
|
|
+ protected static Thread dispenserRegistryInit; //Steamwar
|
|
+
|
|
public MinecraftServer(OptionSet options, Proxy proxy, DataFixer datafixer, CommandDispatcher commanddispatcher, YggdrasilAuthenticationService yggdrasilauthenticationservice, MinecraftSessionService minecraftsessionservice, GameProfileRepository gameprofilerepository, UserCache usercache, WorldLoadListenerFactory worldloadlistenerfactory, String s) {
|
|
super("Server");
|
|
this.ae = new ResourceManager(EnumResourcePackType.SERVER_DATA, this.serverThread);
|
|
SERVER = this; // Paper - better singleton
|
|
this.resourcePackRepository = new ResourcePackRepository<>(ResourcePackLoader::new);
|
|
this.craftingManager = new CraftingManager();
|
|
+ //Steamwar Start
|
|
+ try {
|
|
+ dispenserRegistryInit.join();
|
|
+ } catch (InterruptedException e) {
|
|
+ Thread.currentThread().interrupt();
|
|
+ }
|
|
+ //Steamwar End
|
|
this.tagRegistry = new TagRegistry();
|
|
this.scoreboardServer = new ScoreboardServer(this);
|
|
this.bossBattleCustomData = new BossBattleCustomData(this);
|
|
@@ -1434,8 +1443,15 @@
|
|
}
|
|
|
|
CrashReport.h();
|
|
- DispenserRegistry.init();
|
|
- DispenserRegistry.c();
|
|
+ //Steamwar Start
|
|
+ //DispenserRegistry.init();
|
|
+ //DispenserRegistry.c();
|
|
+ dispenserRegistryInit = new Thread(() -> {
|
|
+ DispenserRegistry.init();
|
|
+ DispenserRegistry.c();
|
|
+ });
|
|
+ dispenserRegistryInit.start();
|
|
+ //Steamwar End
|
|
File s = (File) optionset.valueOf("universe"); // CraftBukkit
|
|
YggdrasilAuthenticationService yggdrasilauthenticationservice = new com.destroystokyo.paper.profile.PaperAuthenticationService(Proxy.NO_PROXY, UUID.randomUUID().toString()); // Paper
|
|
MinecraftSessionService minecraftsessionservice = yggdrasilauthenticationservice.createMinecraftSessionService();
|