Skip to content

Commit

Permalink
add minetest 5.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
wsor4035 committed Jul 4, 2024
1 parent fce1344 commit 486ed15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ i3 = {
debug_mode = false,
max_favs = 6,
max_waypoints = 30,
min_fs_version = 6,
min_fs_version = 4,
item_btn_size = 1.1,
drop_bag_on_die = true,
wielditem_fade_after = 3,
Expand Down
2 changes: 1 addition & 1 deletion mod.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = i3
description = Next-generation inventory
optional_depends = 3d_armor, skinsdb, awards
min_minetest_version = 5.6
min_minetest_version = 5.4
2 changes: 1 addition & 1 deletion src/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ local function get_inventory_fs(player, data, fs)
-- fs"style[player_model;bgcolor=black]"
model(0.2, 0.2, armor_skin and 4 or 3.4, ctn_hgt,
"player_model", props.mesh, textures, "0,-150", "false", "false",
true_table(anim) and fmt("%u,%u;30", anim.x, anim.y) or "")
true_table(anim) and fmt("%u,%u%s", anim.x, anim.y, data.fs_version >= 5 and ";30" or "") or "")
else
local size = 2.5
image(0.7, 0.2, size, size * props.visual_size.y, props.textures[1])
Expand Down

0 comments on commit 486ed15

Please sign in to comment.