minetest complains: set_string to string, hud_elem_type -> type
This commit is contained in:
parent
f8ba3efdac
commit
d8a4e53ba0
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user