mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Fix offhand hud slot incorrect scaling with non 16x texture packs
This commit is contained in:
parent
8f5bca7506
commit
ecd1162c2d
1 changed files with 3 additions and 3 deletions
|
@ -70,8 +70,8 @@ minetest.register_globalstep(function(dtime)
|
||||||
hud_elem_type = "image",
|
hud_elem_type = "image",
|
||||||
position = position,
|
position = position,
|
||||||
offset = offset,
|
offset = offset,
|
||||||
scale = {x = 2.75, y = 2.75},
|
scale = {x = 0.46875, y = 0.46875},
|
||||||
text = "mcl_offhand_slot.png",
|
text = "mcl_offhand_slot.png" .. "^[resize:" .. max_offhand_px .. "x" .. max_offhand_px,
|
||||||
z_index = 0,
|
z_index = 0,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -80,7 +80,7 @@ minetest.register_globalstep(function(dtime)
|
||||||
hud_elem_type = "image",
|
hud_elem_type = "image",
|
||||||
position = position,
|
position = position,
|
||||||
offset = offset,
|
offset = offset,
|
||||||
scale = {x = 0.4, y = 0.4},
|
scale = {x = 0.375, y = 0.375},
|
||||||
text = item_texture,
|
text = item_texture,
|
||||||
z_index = 1,
|
z_index = 1,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue