Fix crash on servers (#1204)

This commit is contained in:
Nicholas Ignoffo 2018-02-05 17:37:23 -08:00
parent 63f88f6bff
commit e79f6c44d6

View file

@ -22,6 +22,8 @@ import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import java.util.List;
@ -127,6 +129,7 @@ public class RegistrarBloodMagicBlocks {
registerTileEntities();
}
@SideOnly(Side.CLIENT)
@SubscribeEvent
public static void registerModels(ModelRegistryEvent event) {
ModelLoader.setCustomStateMapper(LIFE_ESSENCE, new StateMapperBase() {