summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRealBadAngel <maciej.kasatkin@o2.pl>2014-05-06 22:11:04 +0200
committerRealBadAngel <maciej.kasatkin@o2.pl>2014-05-06 22:11:04 +0200
commitc7a4c05860245e0945156bac72797c9e09ff8840 (patch)
tree3003a2d66a8fa1f3fa5576f775d3db715f59d0f9
parent45e1f05ffc08824f66e4a92f4fb04ba45a200e35 (diff)
Fix invalid check for UI.
-rw-r--r--technic/machines/LV/compressor.lua2
-rw-r--r--technic/machines/LV/extractor.lua2
-rw-r--r--technic/machines/register/alloy_furnace.lua2
-rw-r--r--technic/machines/register/grinder_recipes.lua2
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,