diff --git a/src/brulijam/schmutz.lua b/src/brulijam/schmutz.lua index 214240c..4763f16 100644 --- a/src/brulijam/schmutz.lua +++ b/src/brulijam/schmutz.lua @@ -12,17 +12,6 @@ keepList = { [0] = "minecraft:dirt", [1] = "minecraft:grass_block" } - -local function isWanted(blockData) - for i=0, #oreList do - if blockData["name"] == oreList[i] then - inventoryRework() - return true - end - end - return false -end - local function inventoryRework() chestAvailable = false chestSlot = 0 @@ -91,6 +80,18 @@ local function inventoryRework() end end +local function isWanted(blockData) + for i=0, #oreList do + if blockData["name"] == oreList[i] then + inventoryRework() + return true + end + end + return false +end + + + local function recursiveOreMining() for i=0, 3 do --turtle.turnturnLeft()