@@ -24,7 +24,6 @@ import com.mojang.blaze3d.systems.RenderSystem
2424import net.minecraft.client.font.TextRenderer
2525import net.minecraft.client.gui.DrawContext
2626import net.minecraft.client.gui.tooltip.TooltipComponent
27- import net.minecraft.client.render.MapRenderer
2827import net.minecraft.item.FilledMapItem
2928import net.minecraft.item.ItemStack
3029import 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