mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-06-17 14:21:08 +00:00
fix ServerMainMixin
This commit is contained in:
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user