geforkt von Mirrors/Paper
Fix class preloading
Dieser Commit ist enthalten in:
Ursprung
555df3decc
Commit
3052fe18f6
@ -2331,11 +2331,19 @@ diff --git a/src/main/java/net/minecraft/server/Main.java b/src/main/java/net/mi
|
|||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/server/Main.java
|
--- a/src/main/java/net/minecraft/server/Main.java
|
||||||
+++ b/src/main/java/net/minecraft/server/Main.java
|
+++ b/src/main/java/net/minecraft/server/Main.java
|
||||||
|
@@ -0,0 +0,0 @@ import net.minecraft.server.players.UserCache;
|
||||||
|
import net.minecraft.util.MathHelper;
|
||||||
|
import net.minecraft.util.datafix.DataConverterRegistry;
|
||||||
|
import net.minecraft.util.worldupdate.WorldUpgrader;
|
||||||
|
+import net.minecraft.world.entity.npc.VillagerTrades;
|
||||||
|
import net.minecraft.world.level.DataPackConfiguration;
|
||||||
|
import net.minecraft.world.level.GameRules;
|
||||||
|
import net.minecraft.world.level.World;
|
||||||
@@ -0,0 +0,0 @@ public class Main {
|
@@ -0,0 +0,0 @@ public class Main {
|
||||||
|
|
||||||
convertable_conversionsession.a((IRegistryCustom) iregistrycustom_dimension, (SaveData) object);
|
convertable_conversionsession.a((IRegistryCustom) iregistrycustom_dimension, (SaveData) object);
|
||||||
*/
|
*/
|
||||||
+ Class.forName("net.minecraft.server.VillagerTrades");// Paper - load this sync so it won't fail later async
|
+ Class.forName(VillagerTrades.class.getSimpleName());// Paper - load this sync so it won't fail later async
|
||||||
final DedicatedServer dedicatedserver = (DedicatedServer) MinecraftServer.a((thread) -> {
|
final DedicatedServer dedicatedserver = (DedicatedServer) MinecraftServer.a((thread) -> {
|
||||||
DedicatedServer dedicatedserver1 = new DedicatedServer(optionset, datapackconfiguration1, thread, iregistrycustom_dimension, convertable_conversionsession, resourcepackrepository, datapackresources, null, dedicatedserversettings, DataConverterRegistry.a(), minecraftsessionservice, gameprofilerepository, usercache, WorldLoadListenerLogger::new);
|
DedicatedServer dedicatedserver1 = new DedicatedServer(optionset, datapackconfiguration1, thread, iregistrycustom_dimension, convertable_conversionsession, resourcepackrepository, datapackresources, null, dedicatedserversettings, DataConverterRegistry.a(), minecraftsessionservice, gameprofilerepository, usercache, WorldLoadListenerLogger::new);
|
||||||
|
|
||||||
|
@ -361,6 +361,15 @@ diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/
|
|||||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
|
--- a/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||||
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
|
+++ b/src/main/java/org/bukkit/craftbukkit/Main.java
|
||||||
|
@@ -0,0 +0,0 @@ import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
import joptsimple.OptionParser;
|
||||||
|
import joptsimple.OptionSet;
|
||||||
|
+import net.minecraft.util.ExceptionSuppressor;
|
||||||
|
+import net.minecraft.world.level.lighting.LightEngineLayerEventListener;
|
||||||
|
import net.minecrell.terminalconsole.TerminalConsoleAppender; // Paper
|
||||||
|
|
||||||
|
public class Main {
|
||||||
@@ -0,0 +0,0 @@ public class Main {
|
@@ -0,0 +0,0 @@ public class Main {
|
||||||
|
|
||||||
OptionSet options = null;
|
OptionSet options = null;
|
||||||
@ -442,9 +451,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ tryPreloadClass("com.destroystokyo.paper.event.player.PlayerConnectionCloseEvent");
|
+ tryPreloadClass("com.destroystokyo.paper.event.player.PlayerConnectionCloseEvent");
|
||||||
+ tryPreloadClass("com.destroystokyo.paper.event.entity.EntityRemoveFromWorldEvent");
|
+ tryPreloadClass("com.destroystokyo.paper.event.entity.EntityRemoveFromWorldEvent");
|
||||||
+ // Minecraft, seen during saving
|
+ // Minecraft, seen during saving
|
||||||
+ tryPreloadClass("net.minecraft.world.level.lighting.LightEngineLayerEventListener$Void");
|
+ tryPreloadClass(LightEngineLayerEventListener.Void.class.getSimpleName());
|
||||||
+ tryPreloadClass("net.minecraft.world.level.lighting.LightEngineLayerEventListener");
|
+ tryPreloadClass(LightEngineLayerEventListener.class.getSimpleName());
|
||||||
+ tryPreloadClass("net.minecraft.util.ExceptionSuppressor");
|
+ tryPreloadClass(ExceptionSuppressor.class.getSimpleName());
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren