Fix invalid check for UI.
authorRealBadAngel <maciej.kasatkin@o2.pl>
Tue, 6 May 2014 20:11:04 +0000 (22:11 +0200)
committerRealBadAngel <maciej.kasatkin@o2.pl>
Tue, 6 May 2014 20:11:04 +0000 (22:11 +0200)
technic/machines/LV/compressor.lua
technic/machines/LV/extractor.lua
technic/machines/register/alloy_furnace.lua
technic/machines/register/grinder_recipes.lua

index b9e4919370a9d1b707198ee93bfd1c3ce9016d8c..c0e590f4099dc7e595e02eda322f57c889666f2e 100644 (file)
@@ -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,
index f559ae0c1af74709feb9ae6844d3e456f63adc7b..6a620c1f4f262887f3c796323ddf6e5dd1991a80 100644 (file)
@@ -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,
index 6dcca713a84cfddda5c6a1b68354432b7247c711..ebf5eabdc416ee9e5a5b2fc417bea5afb57ee4a4 100644 (file)
@@ -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,
index cab83ac2b63e8c53163354d82a037bd9ad7fb74c..d81d42108d19fabbb5a72c614902b158d786aa1e 100644 (file)
@@ -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,