Change Machine.storageSlots
to Machine.storageLists
This commit is contained in:
parent
78637a4759
commit
c50871a96b
@ -41,7 +41,7 @@ industrialtest.internal.unpackTableInto(industrialtest.IronFurnace,{
|
||||
lightSource=8
|
||||
},
|
||||
facedir=true,
|
||||
storageSlots={
|
||||
storageLists={
|
||||
"src",
|
||||
"fuel",
|
||||
"dst"
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user