From 6397b1349ba52155f73e5b5273fa5356187367f4 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Fri, 16 Apr 2021 13:51:57 +0200 Subject: [PATCH 1/2] fix crash --- mods/ITEMS/mcl_smithing_table/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_smithing_table/init.lua b/mods/ITEMS/mcl_smithing_table/init.lua index b57842d0f4..0c81157a30 100644 --- a/mods/ITEMS/mcl_smithing_table/init.lua +++ b/mods/ITEMS/mcl_smithing_table/init.lua @@ -26,7 +26,7 @@ minetest.register_node("mcl_smithing_table:table", { description = "Smithing table", stack_max = 64, - groups = {pickaxey = 2, deco_block = true}, + groups = {pickaxey = 2, deco_block = 1}, tiles = { "mcl_smithing_table_top.png", "mcl_smithing_table_front.png", "mcl_smithing_table_side.png", From 742aa2becb09167466de2988c47b5856afc75b21 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Fri, 16 Apr 2021 14:01:08 +0200 Subject: [PATCH 2/2] fix inventory not initialised --- mods/ITEMS/mcl_smithing_table/init.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_smithing_table/init.lua b/mods/ITEMS/mcl_smithing_table/init.lua index 0c81157a30..14094b2d57 100644 --- a/mods/ITEMS/mcl_smithing_table/init.lua +++ b/mods/ITEMS/mcl_smithing_table/init.lua @@ -35,7 +35,11 @@ minetest.register_node("mcl_smithing_table:table", { }, on_construct = function(pos) - minetest.get_meta(pos):set_string("formspec", formspec) + local meta = minetest.get_meta(pos) + meta:set_string("formspec", formspec) + local inv = meta:get_inventory() + inv:set_size("input", 2) + inv:set_size("output", 1) end, _mcl_blast_resistance = 2.5,