null safety for silly mods that somehow register gasses after the texture stitch
@@ -2,6 +2,7 @@ package mekanism.api.gas;
import mekanism.client.render.MekanismRenderer;
import mekanism.client.render.MekanismRenderer.FluidType;
+import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.nbt.NBTTagCompound;
@@ -142,6 +143,10 @@ public class Gas
return MekanismRenderer.getFluidTexture(fluid, FluidType.STILL);
}
+ if (sprite == null){
+ sprite = Minecraft.getMinecraft().getTextureMapBlocks().getMissingSprite();
+ }
+
return sprite;
}
