server crashed in version 1.9.5
tyan-boot opened this issue · 2 comments
d0bafd2 this commit add a new FFUtils.getColorFromFluid
method which call net.minecraft.client.Minecraft
,and in MainRegistry:
This will crash the server because net.minecraft.client.Minecraft
doesn't exist in server, since the new fluidColors
map is only for client render, may be we could move registerFluidColors
to another place or add a check like
if (event.getSide().isClient()) {
ModForgeFluids.registerFluidColors();
}
Can confirm this fixes issue #115 I reported earlier.