Fixed rendering of eio block.

This commit is contained in:
cp committed 2014-02-28 18:18:52 +08:00
1 parent 1161ff8c4a
commit 49f412c88c
2 files changed
+5 -9

No files matched your search

@@ -70,7 +70,8 @@ public class EnderIoRenderer extends TileEntitySpecialRenderer implements IItemR
float minV = tex.getMinV();
float maxV = tex.getMaxV();
GL11.glDisable(GL11.GL_CULL_FACE);
//GL11.glDisable(GL11.GL_CULL_FACE);
GL11.glDepthMask(false);
GL11.glColor3f(1, 1, 1);
renderBillboard(lookMat, minU, maxU, minV, maxV, 0.8, brightness);
@@ -130,6 +131,8 @@ public class EnderIoRenderer extends TileEntitySpecialRenderer implements IItemR
GL11.glDisable(GL11.GL_POLYGON_OFFSET_FILL);
GL11.glDisable(GL11.GL_BLEND);
GL11.glDepthMask(true);
}
private void renderBillboard(Matrix4d lookMat, float minU, float maxU, float minV, float maxV, double size, int brightness) {
@@ -546,24 +546,17 @@ public class GuiEnderface extends GuiScreen {
botH = 0xFFFFFFFF;
}
// drawRect(left, top, left + w, top + 1, topH);
// drawRect(left, top, left + 1, top + h, leftH);
// drawRect(left + w - 1, top + 1, left + w, top + h, rightH);
// drawRect(left + 1, top + h - 1, left + w, top + h, botH);
left += 1;
top += 1;
w -= 2;
h -= 2;
// green background
// drawRect(left, top, left + w, top + h, 0xFF004C2A);
drawRect(left, top, left + w, top + h, 0xFF00331C);
}
void openInterface(int x, int y, int z) {
///TODO:1.7
///TODO: Applied Energistics
// if(MeProxy.instance.isMeAccessTerminal(player, x, y, z)) {
// if(Config.enderIoMeAccessEnabled) {
// Packet250CustomPayload pkt = EnderfacePacketProcessor.createMePacket(x, y, z);