forked from minetest-mods/technic
Fix invalid check for UI.
This commit is contained in:
parent
45e1f05ffc
commit
c7a4c05860
@ -3,7 +3,7 @@ technic.compressor_recipes = {}
|
||||
|
||||
local S = technic.getter
|
||||
|
||||
if unified_inventory.register_craft_type then
|
||||
if unified_inventory and unified_inventory.register_craft_type then
|
||||
unified_inventory.register_craft_type("compressing", {
|
||||
description = S("Compressing"),
|
||||
height = 1,
|
||||
|
@ -3,7 +3,7 @@ technic.extractor_recipes ={}
|
||||
|
||||
local S = technic.getter
|
||||
|
||||
if unified_inventory.register_craft_type then
|
||||
if unified_inventory and unified_inventory.register_craft_type then
|
||||
unified_inventory.register_craft_type("extracting", {
|
||||
description = S("Extracting"),
|
||||
height = 1,
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
local S = technic.getter
|
||||
|
||||
if unified_inventory.register_craft_type then
|
||||
if unified_inventory and unified_inventory.register_craft_type then
|
||||
unified_inventory.register_craft_type("alloy", {
|
||||
description = S("Alloy cooking"),
|
||||
height = 2,
|
||||
|
@ -1,7 +1,7 @@
|
||||
|
||||
local S = technic.getter
|
||||
|
||||
if unified_inventory.register_craft_type then
|
||||
if unified_inventory and unified_inventory.register_craft_type then
|
||||
unified_inventory.register_craft_type("grinding", {
|
||||
description = S("Grinding"),
|
||||
height = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user