Don't waste cpu cycles

This commit is contained in:
DBotThePony 2022-10-22 01:04:48 +07:00
parent 6cd050e0a7
commit 6f4622884d
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -217,7 +217,6 @@ object AndroidMenuKeyMapping : KeyMapping("key.otm.android_menu", KeyConflictCon
RenderSystem.setShaderColor(1f, 1f, 1f, 1f) RenderSystem.setShaderColor(1f, 1f, 1f, 1f)
val iconSize = size * 0.25f val iconSize = size * 0.25f
val iconSizeSelected = linearInterpolation(if (lastSelectedFeature != null) lastSelectProgress.getFloat(lastSelectedFeature) else 0f, size * 0.25f, size * 0.3f)
event.poseStack.pushPose() event.poseStack.pushPose()
event.poseStack.translate(minecraft.window.guiScaledWidth.toDouble() / 2f, minecraft.window.guiScaledHeight.toDouble() / 2f, 0.0) event.poseStack.translate(minecraft.window.guiScaledWidth.toDouble() / 2f, minecraft.window.guiScaledHeight.toDouble() / 2f, 0.0)