Don't waste cpu cycles
This commit is contained in:
parent
6cd050e0a7
commit
6f4622884d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user