mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Add content renderers for the rest of the transmitters, everything works as far as I can see but for some reason it takes a block update to actually start calling the special renderers
This commit is contained in:
1 parent
7b21d0511a
commit
5249c0b6c8
8 files changed
+424
-26
No files matched your search
@@ -18,6 +18,8 @@ import mekanism.client.render.tileentity.RenderConfigurableMachine;
|
||||
import mekanism.client.render.tileentity.RenderDynamicTank;
|
||||
import mekanism.client.render.tileentity.RenderFluidTank;
|
||||
import mekanism.client.render.tileentity.RenderThermalEvaporationController;
|
||||
import mekanism.client.render.transmitter.RenderLogisticalTransporter;
|
||||
import mekanism.client.render.transmitter.RenderMechanicalPipe;
|
||||
import mekanism.common.base.IMetaItem;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -81,7 +83,6 @@ public class MekanismRenderer
|
||||
public static TextureAtlasSprite missingIcon;
|
||||
|
||||
public static Map<FluidType, Map<Fluid, TextureAtlasSprite>> textureMap = new HashMap<FluidType, Map<Fluid, TextureAtlasSprite>>();
|
||||
|
||||
|
||||
@SubscribeEvent
|
||||
public void onStitch(TextureStitchEvent.Pre event)
|
||||
@@ -128,6 +129,9 @@ public class MekanismRenderer
|
||||
{
|
||||
initFluidTextures(event.map);
|
||||
|
||||
RenderLogisticalTransporter.onStitch(event.map);
|
||||
RenderMechanicalPipe.onStitch();
|
||||
|
||||
for(Gas gas : GasRegistry.getRegisteredGasses())
|
||||
{
|
||||
gas.updateIcon(event.map);
|
||||
|
||||
Reference in new issue
Block a user