Fix Lamps

This commit is contained in:
Kam committed 2025-02-13 03:30:04 -05:00
1 parent 3a00d08304
commit 8547c21474
2 files changed
+2 -4

No files matched your search

@@ -70,12 +70,10 @@ public class TileVariant extends TileEntity {
compound.setInteger("BrushColor", ColorUtil.colorTableInts[bannerColor]);
}
compound.setInteger("CNPCVariant", bannerColor);
compound.removeTag("BannerColor");
fixMade = true;
}
if(compound.hasKey("BannerRotation")){
compound.setInteger("CNPCRotation", compound.getInteger("BannerRotation"));
compound.removeTag("BannerRotation");
fixMade = true;
}
}
@@ -56,7 +56,7 @@ public class BlockTallLampRenderer extends BlockRendererInterface{
modelLegacy.render(null, 0, 0, 0, 0, 0.0F, 0.0625F);
this.bindTexture(resourceTop);
float[] color = ColorUtil.hexToRGB(ColorUtil.colorTableInts[tile.color]);
float[] color = ColorUtil.hexToRGB(tile.color);
GL11.glColor3f(color[0], color[1], color[2]);
topLegacy.render(null, 0, 0, 0, 0, 0.0F, 0.0625F);
} else {
@@ -74,7 +74,7 @@ public class BlockTallLampRenderer extends BlockRendererInterface{
model.Light.render(0.0625F);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)brightX, (float)brightY);
float[] color = ColorUtil.hexToRGB(ColorUtil.colorTableInts[tile.color]);
float[] color = ColorUtil.hexToRGB(tile.color);
GL11.glColor3f(color[0], color[1], color[2]);
model.Shade.render(0.0625F);
}