Change Machine.storageSlots to Machine.storageLists

This commit is contained in:
2024-10-25 12:42:42 +02:00
parent 78637a4759
commit c50871a96b
2 changed files with 5 additions and 5 deletions

View File

@@ -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,