mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-19 03:39:17 +00:00
Made the runic altar's floaty cube animation smoother. 144hz master race.
This commit is contained in:
1 parent
0e0ab83cf3
commit
e2994187f5
1 file changed
+4
-1
@@ -17,6 +17,9 @@ import net.minecraft.client.renderer.OpenGlHelper;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import vazkii.botania.client.core.handler.ClientTickHandler;
|
||||
import cpw.mods.fml.common.gameevent.TickEvent.ClientTickEvent;
|
||||
|
||||
public class ModelSpinningCubes extends ModelBase {
|
||||
|
||||
ModelRenderer spinningCube;
|
||||
@@ -36,7 +39,7 @@ public class ModelSpinningCubes extends ModelBase {
|
||||
final float radiusBase = 0.35F;
|
||||
final float radiusMod = 0.05F;
|
||||
|
||||
double ticks = Minecraft.getMinecraft().thePlayer.ticksExisted - 1.3 * (origRepeat - repeat);
|
||||
double ticks = (ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks) - 1.3 * (origRepeat - repeat);
|
||||
float offsetPerCube = 360 / cubes;
|
||||
|
||||
GL11.glPushMatrix();
|
||||
|
||||
Reference in new issue
Block a user