From 9c8c517f231f842a4b2e08c7d7aa363c3d3007b7 Mon Sep 17 00:00:00 2001 From: Robert S Date: Sun, 17 Aug 2014 11:11:12 -0400 Subject: [PATCH] Fixed several more render issues with SpatialTiles --- .../archaic/firebox/TileHotPlate.java | 1 + .../archaic/fluid/tank/TileTank.scala | 1 + .../atomic/blocks/TileElectromagnet.java | 2 ++ .../atomic/machine/plasma/RenderPlasmaHeater.java | 11 +++++++++++ 4 files changed, 15 insertions(+) diff --git a/src/main/scala/resonantinduction/archaic/firebox/TileHotPlate.java b/src/main/scala/resonantinduction/archaic/firebox/TileHotPlate.java index de37d7b49..77b1c2b11 100644 --- a/src/main/scala/resonantinduction/archaic/firebox/TileHotPlate.java +++ b/src/main/scala/resonantinduction/archaic/firebox/TileHotPlate.java @@ -47,6 +47,7 @@ public class TileHotPlate extends TileInventory implements IPacketReceiver setSizeInventory(4); bounds(new Cuboid(0, 0, 0, 1, 0.2f, 1)); normalRender(false); + forceStandardRender(true); isOpaqueCube(false); } diff --git a/src/main/scala/resonantinduction/archaic/fluid/tank/TileTank.scala b/src/main/scala/resonantinduction/archaic/fluid/tank/TileTank.scala index 9d1fcfcf7..bba093f06 100644 --- a/src/main/scala/resonantinduction/archaic/fluid/tank/TileTank.scala +++ b/src/main/scala/resonantinduction/archaic/fluid/tank/TileTank.scala @@ -84,6 +84,7 @@ class TileTank extends TileTankNode(Material.iron) with ISneakPickup { isOpaqueCube(false) normalRender(false) + forceStandardRender(true) itemBlock(classOf[ItemBlockTank]) setCapacity(16 * FluidContainerRegistry.BUCKET_VOLUME) diff --git a/src/main/scala/resonantinduction/atomic/blocks/TileElectromagnet.java b/src/main/scala/resonantinduction/atomic/blocks/TileElectromagnet.java index a8b7cd5b4..a3cc46ae1 100644 --- a/src/main/scala/resonantinduction/atomic/blocks/TileElectromagnet.java +++ b/src/main/scala/resonantinduction/atomic/blocks/TileElectromagnet.java @@ -26,6 +26,8 @@ public class TileElectromagnet extends SpatialBlock implements IElectromagnet { super(Material.iron); blockResistance(20); + forceStandardRender(true); + normalRender(false); isOpaqueCube(false); this.itemBlock(ItemBlockMetadata.class); } diff --git a/src/main/scala/resonantinduction/atomic/machine/plasma/RenderPlasmaHeater.java b/src/main/scala/resonantinduction/atomic/machine/plasma/RenderPlasmaHeater.java index 38ef66987..5dbc24f2a 100644 --- a/src/main/scala/resonantinduction/atomic/machine/plasma/RenderPlasmaHeater.java +++ b/src/main/scala/resonantinduction/atomic/machine/plasma/RenderPlasmaHeater.java @@ -28,6 +28,17 @@ public class RenderPlasmaHeater extends RenderTaggedTile super.renderTileEntityAt(t, x, y, z, f); } + GL11.glPushMatrix(); + GL11.glTranslated(x + 0.5, y + 0.5, z + 0.5); + bindTexture(TEXTURE); + + GL11.glPushMatrix(); + GL11.glRotated(Math.toDegrees(tileEntity.rotation), 0, 1, 0); + MODEL.renderOnly("rrot", "srot"); + GL11.glPopMatrix(); + + MODEL.renderAllExcept("rrot", "srot"); + GL11.glPopMatrix(); } } \ No newline at end of file