From c7a4c05860245e0945156bac72797c9e09ff8840 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Tue, 6 May 2014 22:11:04 +0200 Subject: [PATCH] Fix invalid check for UI. --- technic/machines/LV/compressor.lua | 2 +- technic/machines/LV/extractor.lua | 2 +- technic/machines/register/alloy_furnace.lua | 2 +- technic/machines/register/grinder_recipes.lua | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/technic/machines/LV/compressor.lua b/technic/machines/LV/compressor.lua index b9e4919..c0e590f 100644 --- a/technic/machines/LV/compressor.lua +++ b/technic/machines/LV/compressor.lua @@ -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, diff --git a/technic/machines/LV/extractor.lua b/technic/machines/LV/extractor.lua index f559ae0..6a620c1 100644 --- a/technic/machines/LV/extractor.lua +++ b/technic/machines/LV/extractor.lua @@ -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, diff --git a/technic/machines/register/alloy_furnace.lua b/technic/machines/register/alloy_furnace.lua index 6dcca71..ebf5eab 100644 --- a/technic/machines/register/alloy_furnace.lua +++ b/technic/machines/register/alloy_furnace.lua @@ -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, diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index cab83ac..d81d421 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -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, -- 2.30.2