mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 02:12:42 -04:00
Item rendering of prints with two states will now alternate the state rendered.
This commit is contained in:
parent
77944aa0c0
commit
d9d6fa351d
@ -165,11 +165,16 @@ object ItemRenderer extends IItemRenderer {
|
|||||||
|
|
||||||
val data = new PrintData(stack)
|
val data = new PrintData(stack)
|
||||||
Minecraft.getMinecraft.renderEngine.bindTexture(TextureMap.locationBlocksTexture)
|
Minecraft.getMinecraft.renderEngine.bindTexture(TextureMap.locationBlocksTexture)
|
||||||
for (shape <- data.stateOff) {
|
val state =
|
||||||
|
if (data.stateOn.size > 0 && System.currentTimeMillis() / 2000 % 2 == 0)
|
||||||
|
data.stateOn
|
||||||
|
else
|
||||||
|
data.stateOff
|
||||||
|
for (shape <- state) {
|
||||||
drawShape(shape)
|
drawShape(shape)
|
||||||
}
|
}
|
||||||
if (data.stateOff.isEmpty) {
|
if (state.isEmpty) {
|
||||||
drawShape(nullShape)
|
drawShape(nullShape) // Avoid tessellator erroring.
|
||||||
}
|
}
|
||||||
|
|
||||||
GL11.glPopMatrix()
|
GL11.glPopMatrix()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user