For some reason getTotalWorldTime isn't incrementing client-side in some cases when the doDaylightCycle is off, so replace them with alternatives wherever possible
What's really weird is sometimes it works just fine, even in client-side stuff
This commit is contained in:
@@ -52,7 +52,7 @@ public class RenderShadowWard {
|
||||
GlStateManager.pushMatrix();
|
||||
|
||||
GlStateManager.translate(0, 0, 1.2);
|
||||
GlStateManager.rotate(player.world.getTotalWorldTime() * -2, 0, 0, 1);
|
||||
GlStateManager.rotate(player.ticksExisted * -2, 0, 0, 1);
|
||||
GlStateManager.scale(1.1, 1.1, 1.1);
|
||||
|
||||
Tessellator tessellator = Tessellator.getInstance();
|
||||
@@ -116,7 +116,7 @@ public class RenderShadowWard {
|
||||
BufferBuilder buffer = tessellator.getBuffer();
|
||||
|
||||
GlStateManager.translate(0, 1.2, 0);
|
||||
GlStateManager.rotate(player.world.getTotalWorldTime() * -2, 0, 0, 1);
|
||||
GlStateManager.rotate(player.ticksExisted * -2, 0, 0, 1);
|
||||
GlStateManager.scale(1.1, 1.1, 1.1);
|
||||
|
||||
buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
|
||||
|
||||
Reference in New Issue
Block a user