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
|
lightSource=8
|
||||||
},
|
},
|
||||||
facedir=true,
|
facedir=true,
|
||||||
storageSlots={
|
storageLists={
|
||||||
"src",
|
"src",
|
||||||
"fuel",
|
"fuel",
|
||||||
"dst"
|
"dst"
|
||||||
|
@ -171,7 +171,7 @@ function industrialtest.Machine.createDefinitionTable(self)
|
|||||||
def.can_dig=function(pos)
|
def.can_dig=function(pos)
|
||||||
local meta=minetest.get_meta(pos)
|
local meta=minetest.get_meta(pos)
|
||||||
local inv=meta:get_inventory()
|
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
|
if inv:get_stack(value,1):get_count()>0 then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
@ -180,10 +180,10 @@ function industrialtest.Machine.createDefinitionTable(self)
|
|||||||
end
|
end
|
||||||
elseif industrialtest.mclAvailable then
|
elseif industrialtest.mclAvailable then
|
||||||
def.after_dig_node=function(pos,oldnode,oldmeta)
|
def.after_dig_node=function(pos,oldnode,oldmeta)
|
||||||
industrialtest.internal.mclAfterDigNode(pos,oldmeta,self.storageSlots)
|
industrialtest.internal.mclAfterDigNode(pos,oldmeta,self.storageLists)
|
||||||
end
|
end
|
||||||
if config.sounds=="metal" then
|
if self.sounds=="metal" then
|
||||||
definition.sounds=mcl_sounds.node_sound_metal_defaults()
|
def.sounds=mcl_sounds.node_sound_metal_defaults()
|
||||||
end
|
end
|
||||||
def.groups={
|
def.groups={
|
||||||
pickaxey=1,
|
pickaxey=1,
|
||||||
|
Loading…
Reference in New Issue
Block a user