moving loading of scripts to after worlds are loaded, fixes #331
This commit is contained in:
1 parent
d838cfd32f
commit
be7d7ed46e
3 files changed
+22
-3
No files matched your search
@@ -31,13 +31,18 @@ public abstract class MinecraftServer_coreMixin
|
||||
CarpetServer.tick((MinecraftServer) (Object) this);
|
||||
}
|
||||
|
||||
// Dedicated server only
|
||||
@Inject(method = "loadWorld", at = @At("HEAD"))
|
||||
private void serverLoaded(String string_1, String string_2, long long_1, LevelGeneratorType levelGeneratorType_1, JsonElement jsonElement_1, CallbackInfo ci)
|
||||
{
|
||||
CarpetServer.onServerLoaded((MinecraftServer) (Object) this);
|
||||
}
|
||||
|
||||
@Inject(method = "loadWorld", at = @At("RETURN"))
|
||||
private void serverLoadedWorlds(String string_1, String string_2, long long_1, LevelGeneratorType levelGeneratorType_1, JsonElement jsonElement_1, CallbackInfo ci)
|
||||
{
|
||||
CarpetServer.onServerLoadedWorlds((MinecraftServer) (Object) this);
|
||||
}
|
||||
|
||||
@Inject(method = "shutdown", at = @At("HEAD"))
|
||||
private void serverClosed(CallbackInfo ci)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user