From 742aa2becb09167466de2988c47b5856afc75b21 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Fri, 16 Apr 2021 14:01:08 +0200 Subject: [PATCH] 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,