diff --git a/machines/iron_furnace.lua b/machines/iron_furnace.lua index 7eeafe2..56fc7fa 100644 --- a/machines/iron_furnace.lua +++ b/machines/iron_furnace.lua @@ -41,7 +41,7 @@ industrialtest.internal.unpackTableInto(industrialtest.IronFurnace,{ lightSource=8 }, facedir=true, - storageSlots={ + storageLists={ "src", "fuel", "dst" diff --git a/machines/machine.lua b/machines/machine.lua index b28ddb4..f64f1a5 100644 --- a/machines/machine.lua +++ b/machines/machine.lua @@ -171,7 +171,7 @@ function industrialtest.Machine.createDefinitionTable(self) def.can_dig=function(pos) local meta=minetest.get_meta(pos) local inv=meta:get_inventory() - for _,value in ipairs(self.storageSlots) do + for _,value in ipairs(self.storageLists) do if inv:get_stack(value,1):get_count()>0 then return false end @@ -180,10 +180,10 @@ function industrialtest.Machine.createDefinitionTable(self) end elseif industrialtest.mclAvailable then def.after_dig_node=function(pos,oldnode,oldmeta) - industrialtest.internal.mclAfterDigNode(pos,oldmeta,self.storageSlots) + industrialtest.internal.mclAfterDigNode(pos,oldmeta,self.storageLists) end - if config.sounds=="metal" then - definition.sounds=mcl_sounds.node_sound_metal_defaults() + if self.sounds=="metal" then + def.sounds=mcl_sounds.node_sound_metal_defaults() end def.groups={ pickaxey=1,