reinstated the refresh button in survival mode;
problems with creative mode with damage_enabled tweaked Skins formspec and new button imagemaster
parent
17c3ebc8b4
commit
bdb829e7df
|
@ -13,7 +13,7 @@ local trash = minetest.create_detached_inventory("crafting_trash", {
|
|||
})
|
||||
trash:set_size("main", 1)
|
||||
|
||||
if minetest.setting_getbool("enable_damage") then
|
||||
--[[if minetest.setting_getbool("enable_damage") then
|
||||
sfinv.register_page("sfinv:crafting", {
|
||||
title = "Crafting",
|
||||
get = function(self, player, context)
|
||||
|
@ -33,6 +33,7 @@ sfinv.register_page("sfinv:crafting", {
|
|||
})
|
||||
|
||||
else
|
||||
--]]
|
||||
|
||||
sfinv.register_page("sfinv:crafting", {
|
||||
title = "Crafting",
|
||||
|
@ -53,4 +54,5 @@ sfinv.register_page("sfinv:crafting", {
|
|||
]], true)
|
||||
end
|
||||
})
|
||||
end
|
||||
|
||||
--end
|
||||
|
|
|
@ -81,8 +81,8 @@ skins.formspec.main = function(name)
|
|||
local index = 0
|
||||
local skip = 8 -- Skip skins, used for pages
|
||||
for i, skin in ipairs(skins.list) do
|
||||
if skip < page*24 then skip = skip + 1 else
|
||||
if index < 24 then
|
||||
if skip < page*16 then skip = skip + 1 else
|
||||
if index < 16 then
|
||||
formspec = formspec .. "image_button["..(index%8)..","..((math.floor(index/8))*2+3)..";1,2;"..skin
|
||||
if skins.get_type(skin) == skins.type.MODEL then
|
||||
formspec = formspec .. "_preview"
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 612 B |
Loading…
Reference in New Issue