Skip to content

Commit

Permalink
add minetest 5.4 support (#15)
Browse files Browse the repository at this point in the history
* add minetest 5.4 support

* handle player model in 5.4 better
  • Loading branch information
wsor4035 authored Jul 4, 2024
1 parent fce1344 commit df0a8ff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ i3 = {
debug_mode = false,
max_favs = 6,
max_waypoints = 30,
min_fs_version = 6,
min_fs_version = 4,
target_fs_version = 6,
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 @@ -1751,7 +1751,7 @@ local function make_fs(player, data)
local full_height = 12

fs("formspec_version[%u]size[%f,%f]no_prepend[]bgcolor[#0000]",
i3.settings.min_fs_version, data.inv_width + 8, full_height)
i3.settings.target_fs_version, data.inv_width + 8, full_height)

fs(styles)

Expand Down

0 comments on commit df0a8ff

Please sign in to comment.