Skip to content

Commit 662dd8b

Browse files
committed
fixed map scale
1 parent 4f4c374 commit 662dd8b

File tree

1 file changed

+1
-4
lines changed
  • common/src/main/kotlin/com/lambda/module/modules/render

1 file changed

+1
-4
lines changed

common/src/main/kotlin/com/lambda/module/modules/render/MapPreview.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import com.mojang.blaze3d.systems.RenderSystem
2424
import net.minecraft.client.font.TextRenderer
2525
import net.minecraft.client.gui.DrawContext
2626
import net.minecraft.client.gui.tooltip.TooltipComponent
27-
import net.minecraft.client.render.MapRenderer
2827
import net.minecraft.item.FilledMapItem
2928
import net.minecraft.item.ItemStack
3029
import net.minecraft.item.map.MapState
@@ -36,8 +35,6 @@ object MapPreview : Module(
3635
description = "Preview maps in your inventory",
3736
defaultTags = setOf(ModuleTag.RENDER)
3837
) {
39-
private val scale by setting("Scale", 0.7f, 0.1f..1.0f, 0.05f)
40-
4138
private val background = Identifier("textures/map/map_background.png")
4239

4340
// The map component is added via the draw context mixin, thanks mojang
@@ -56,7 +53,7 @@ object MapPreview : Module(
5653

5754
matrices.push()
5855
matrices.translate(x + 3.0, y + 3.0, 500.0)
59-
matrices.scale(scale, scale, 1f)
56+
matrices.scale(0.7f, 0.7f, 1f)
6057

6158
RenderSystem.enableBlend()
6259
context.drawTexture(background, -7, -7, 0f, 0f, 142, 142, 142, 142)

0 commit comments

Comments
 (0)