From 486ed159dca6048dcec5265d3b67a5e6aa443e15 Mon Sep 17 00:00:00 2001 From: wsor4035 <24964441+wsor4035@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:27:04 -0400 Subject: [PATCH] add minetest 5.4 support --- init.lua | 2 +- mod.conf | 2 +- src/gui.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 80efa43..8b19ea8 100644 --- a/init.lua +++ b/init.lua @@ -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, diff --git a/mod.conf b/mod.conf index 04452f7..cf9ea1f 100644 --- a/mod.conf +++ b/mod.conf @@ -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 diff --git a/src/gui.lua b/src/gui.lua index e3ec9c8..cee610a 100644 --- a/src/gui.lua +++ b/src/gui.lua @@ -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])