Add comment

This commit is contained in:
Jean-Patrick Guerrero 2019-09-09 19:06:35 +02:00
parent 08e758aca5
commit 11da33ca76

@ -767,7 +767,7 @@ local function reset_data(data)
data.items = data.items_raw data.items = data.items_raw
end end
-- Because `core.get_craft_recipe` and `core.get_all_craft_recipes` do not return the replacements, -- As `core.get_craft_recipe` and `core.get_all_craft_recipes` do not return the replacements,
-- we have to override `core.register_craft` and `core.register_alias` and do some reverse engineering. -- we have to override `core.register_craft` and `core.register_alias` and do some reverse engineering.
-- See engine's issue #4901. -- See engine's issue #4901.
@ -1183,6 +1183,9 @@ if progressive_mode then
end end
local function show_hud_success(player, data, dtime) local function show_hud_success(player, data, dtime)
-- It'd better to have an engine function `hud_move` to do not
-- depend on the server dtime, and use the client dtime internally instead.
local hud_info_bg = player:hud_get(data.hud.bg) local hud_info_bg = player:hud_get(data.hud.bg)
if hud_info_bg.position.y <= 0.9 then if hud_info_bg.position.y <= 0.9 then
@ -1222,8 +1225,8 @@ if progressive_mode then
end end
end end
-- Workaround. Need an engine call to detect when the contents -- Workaround. Need an engine call to detect when the contents of
-- of the player inventory changed, instead -- the player inventory changed, instead.
local function poll_new_items() local function poll_new_items()
for i = 1, #PLAYERS do for i = 1, #PLAYERS do
local player = PLAYERS[i] local player = PLAYERS[i]