1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 04:40:22 +02:00

Remove uses of default.gui_bg/bg_img/slots

Keep their definitions, to not break mods, but move them to legacy.lua.
This commit is contained in:
Paramat
2019-01-03 01:57:13 +00:00
committed by GitHub
parent ccf03ea404
commit 8af8dc49a0
9 changed files with 6 additions and 32 deletions

View File

@ -126,9 +126,7 @@ function creative.register_tab(name, title, items)
"field[0.3,3.5;2.2,1;creative_filter;;" .. minetest.formspec_escape(inv.filter) .. "]" ..
"listring[detached:creative_" .. player_name .. ";main]" ..
"list[detached:creative_" .. player_name .. ";main;0,0;8,3;" .. tostring(start_i) .. "]" ..
default.get_hotbar_bg(0,4.7) ..
default.gui_bg .. default.gui_bg_img .. default.gui_slots
.. creative.formspec_add, false)
default.get_hotbar_bg(0,4.7) .. creative.formspec_add, false)
end,
on_enter = function(self, player, context)
local player_name = player:get_player_name()