添加获取了ServerLevel的获取方法
This commit is contained in:
parent
000ed81d13
commit
4f7a030843
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user