minetest complains: set_string to string, hud_elem_type -> type

This commit is contained in:
Ocraw 2024-08-26 15:01:53 +02:00
parent f8ba3efdac
commit d8a4e53ba0
2 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ function logistica.access_point_allow_take(inv, listname, index, _stack, player)
-- either way, only allow taking up to stack max
stack:set_count(math.min(stack:get_count(), stackMax))
-- remove the sometimes manually added count display
stack:get_meta():set_string("count_meta", nil)
stack:get_meta():set_string("count_meta", "")
if stackMax > 1 then
local taken = ItemStack("")
local acceptTaken = function(st) taken:add_item(st); return 0 end

View File

@ -23,7 +23,7 @@ function logistica.show_popup(playerName, text, time, atBottom, scale)
playerHud[playerName] = nil
end
local hudId = player:hud_add({
hud_elem_type = "text",
type = "text",
style = 1,
position = position,
offset = offset,