@EventHandler
public void validateFluids(FMLServerStartedEvent event){
Fluid oil = FluidRegistry.getFluid(Fluids.oil.getName());
if(oil.getBlock() == null) {
String modName = FluidRegistry.getDefaultFluidName(oil).split(":")[0];
throw new IllegalStateException(String.format("Oil fluid does not have a block associated with it. The fluid is owned by %s. This could be fixed by creating the world with having this mod loaded after PneumaticCraft. This can be done by adding a injectedDependencies.json inside the config folder containing: [{\"modId\": \"%s\",\"deps\": [{\"type\":\"after\",\"target\":\"%s\"}]}]", modName, modName, Names.MOD_ID));
}
}
PneumaticCraft.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:PneumaticCraft
作者:
评论列表
文章目录