添加获取了ServerLevel的获取方法

This commit is contained in:
叁玖领域 2025-10-15 19:40:04 +08:00
parent 000ed81d13
commit 4f7a030843

View File

@ -30,7 +30,7 @@ public class CommonHandler {
@net.minecraftforge.fml.common.Mod.EventBusSubscriber(modid = Lib39.MOD_ID, bus = net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus.FORGE) @net.minecraftforge.fml.common.Mod.EventBusSubscriber(modid = Lib39.MOD_ID, bus = net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus.FORGE)
public static class Game extends CommonHandler { public static class Game extends CommonHandler {
private static ServerLevel sl; private static ServerLevel sl;
public ServerLevel getServerLevel() { public static ServerLevel getServerLevel() {
return sl; return sl;
} }
static volatile SyncData2Manager syncData2Manager; static volatile SyncData2Manager syncData2Manager;