fix ServerMainMixin

This commit is contained in:
dfsek
2022-03-23 22:22:51 -07:00
parent 2b0b06e14f
commit 2267759378
@@ -31,8 +31,8 @@ import com.dfsek.terra.fabric.FabricEntryPoint;
public class ServerMainMixin { public class ServerMainMixin {
@Inject(method = "main([Ljava/lang/String;)V", @Inject(method = "main([Ljava/lang/String;)V",
at = @At(value = "INVOKE", at = @At(value = "INVOKE",
target = "Lnet/minecraft/util/registry/DynamicRegistryManager;create()" + target = "Lnet/minecraft/server/SaveLoader;refresh()V") // after registry manager creation
"Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;")) )
private static void injectConstructor(String[] args, CallbackInfo ci) { private static void injectConstructor(String[] args, CallbackInfo ci) {
FabricEntryPoint.getPlatform().getEventManager().callEvent( FabricEntryPoint.getPlatform().getEventManager().callEvent(
new PlatformInitializationEvent()); // Load during MinecraftServer construction, after other mods have registered blocks new PlatformInitializationEvent()); // Load during MinecraftServer construction, after other mods have registered blocks