Compare commits

..

7 Commits
1.15 ... 1.15.2

Author SHA1 Message Date
d5fc865634 Bump version 2023-03-06 22:24:32 +01:00
fe475747ea Fix crash with some mods 2023-03-06 22:00:49 +01:00
e2fafbc876 New click sound 2023-03-06 12:38:12 +01:00
3b860082b5 Doc 2023-03-05 14:53:36 +01:00
36cdcde7ed Bump version 2023-03-05 14:52:55 +01:00
c9e02dfe09 Fix replacements in Quick Crafting 2023-03-05 14:24:16 +01:00
7005794cc3 Merge globalsteps 2023-03-05 13:57:24 +01:00
6 changed files with 8 additions and 26 deletions

View File

@ -35,7 +35,6 @@ To enable it: `i3_progressive_mode = true` in `minetest.conf`.*
To use this mod in the best conditions:
- Use LuaJIT
- Use a HiDPI widescreen display
- Use the default Freetype font style
#### Troubleshooting

View File

@ -20,7 +20,7 @@ local function lf(path)
end
i3 = {
version = 115,
version = 1152,
data = core.deserialize(storage:get_string"data") or {},
settings = {

Binary file not shown.

View File

@ -1,7 +1,7 @@
local replacements = {fuel = {}}
local http = ...
IMPORT("maxn", "copy", "insert", "sort", "match", "sub")
IMPORT("copy", "insert", "sort", "match", "sub")
IMPORT("true_str", "is_table", "valid_item", "table_merge", "table_replace", "table_eq")
IMPORT("fmt", "reg_items", "reg_aliases", "reg_nodes", "is_cube", "get_cube", "ItemStack")
IMPORT("is_group", "extract_groups", "item_has_groups", "groups_to_items", "get_group_stereotype")
@ -178,13 +178,7 @@ local function cache_recipes(item)
_recipes[#recipes + 1 - k] = v
end
local size_rpl = maxn(replacements[item])
local size_rcp = #_recipes
local shift = size_rcp - size_rpl
for k, v in pairs(replacements[item]) do
k += shift
if _recipes[k] then
_recipes[k].replacements = v
end

View File

@ -11,11 +11,11 @@ IMPORT("vec", "vec_round")
IMPORT("find", "match", "sub", "upper")
IMPORT("clr", "ESC", "msg", "check_privs")
IMPORT("min", "max", "floor", "ceil", "round")
IMPORT("true_str", "is_fav", "is_num", "str_to_pos")
IMPORT("reg_items", "reg_nodes", "reg_tools", "reg_entities")
IMPORT("get_bag_description", "get_detached_inv", "get_recipes")
IMPORT("compression_active", "compressible", "recipe_filter_set")
IMPORT("S", "ES", "translate", "ItemStack", "toupper", "utf8_len")
IMPORT("true_str", "true_table", "is_fav", "is_num", "str_to_pos")
IMPORT("maxn", "sort", "concat", "copy", "insert", "remove", "unpack")
IMPORT("extract_groups", "groups_to_items", "is_group", "item_has_groups", "get_group")
@ -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",
fmt("%u,%u;30", anim.x, anim.y))
true_table(anim) and fmt("%u,%u;30", anim.x, anim.y) or "")
else
local size = 2.5
image(0.7, 0.2, size, size * props.visual_size.y, props.textures[1])

View File

@ -118,6 +118,10 @@ core.register_globalstep(function(dt)
local data = i3.data[name]
if not data then return end
if data.show_hud ~= nil then
show_hud(player, data)
end
local has_text = player:hud_get(data.hud.wielditem).text ~= ""
if not data.wielditem_hud then
@ -152,21 +156,6 @@ core.register_globalstep(function(dt)
end
end)
core.register_globalstep(function()
local players = get_connected_players()
players[0] = #players
for i = 1, players[0] do
local player = players[i]
local name = player:get_player_name()
local data = i3.data[name]
if data and data.show_hud ~= nil then
show_hud(player, data)
end
end
end)
local function init_waypoints(player)
local name = player:get_player_name()
local data = i3.data[name]