1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-01-30 19:40:37 +01:00

Actually fix preloading this time

This commit is contained in:
Mariell Hoversholm 2021-03-16 17:51:13 +01:00
parent 3052fe18f6
commit 2d847f7478
2 changed files with 4 additions and 4 deletions

View file

@ -2343,7 +2343,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
convertable_conversionsession.a((IRegistryCustom) iregistrycustom_dimension, (SaveData) object);
*/
+ Class.forName(VillagerTrades.class.getSimpleName());// Paper - load this sync so it won't fail later async
+ Class.forName(VillagerTrades.class.getName());// Paper - load this sync so it won't fail later async
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);

View file

@ -451,9 +451,9 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ tryPreloadClass("com.destroystokyo.paper.event.player.PlayerConnectionCloseEvent");
+ tryPreloadClass("com.destroystokyo.paper.event.entity.EntityRemoveFromWorldEvent");
+ // Minecraft, seen during saving
+ tryPreloadClass(LightEngineLayerEventListener.Void.class.getSimpleName());
+ tryPreloadClass(LightEngineLayerEventListener.class.getSimpleName());
+ tryPreloadClass(ExceptionSuppressor.class.getSimpleName());
+ tryPreloadClass(LightEngineLayerEventListener.Void.class.getName());
+ tryPreloadClass(LightEngineLayerEventListener.class.getName());
+ tryPreloadClass(ExceptionSuppressor.class.getName());
+ // Paper end
+ }
+ }