mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 13:52:31 +01:00
Test local variable 'have_ui' before calling 'unified_inventory' (#368)
This commit is contained in:
parent
86fb981b44
commit
a5db87f0f1
@ -51,7 +51,7 @@ local function register_recipe(typename, data)
|
|||||||
end
|
end
|
||||||
|
|
||||||
technic.recipes[typename].recipes[index] = recipe
|
technic.recipes[typename].recipes[index] = recipe
|
||||||
if unified_inventory and technic.recipes[typename].output_size == 1 then
|
if have_ui and technic.recipes[typename].output_size == 1 then
|
||||||
unified_inventory.register_craft({
|
unified_inventory.register_craft({
|
||||||
type = typename,
|
type = typename,
|
||||||
output = data.output,
|
output = data.output,
|
||||||
|
Loading…
Reference in New Issue
Block a user