mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-18 08:10:48 +01:00
another null check for https://github.com/pandorabox-io/pandorabox.io/issues/59
This commit is contained in:
parent
54953b3213
commit
2d18ca778f
@ -81,8 +81,12 @@ end
|
|||||||
local function quarry_handle_purge(pos)
|
local function quarry_handle_purge(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
|
local cache = inv:get_list("cache")
|
||||||
|
if not cache then
|
||||||
|
return
|
||||||
|
end
|
||||||
local i = 0
|
local i = 0
|
||||||
for _,stack in ipairs(inv:get_list("cache")) do
|
for _,stack in ipairs(cache) do
|
||||||
i = i + 1
|
i = i + 1
|
||||||
if stack then
|
if stack then
|
||||||
local item = stack:to_table()
|
local item = stack:to_table()
|
||||||
|
Loading…
Reference in New Issue
Block a user