mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-12-05 03:03:47 +01:00
add nil check for lightning staff pos
This commit is contained in:
parent
f6e0c45b15
commit
abc57a64fb
@ -256,6 +256,8 @@ minetest.register_tool("lucky_block:lightning_staff", {
|
||||
pos = pointed_thing.above
|
||||
end
|
||||
|
||||
if not pos then return end
|
||||
|
||||
local bnod = pos and minetest.get_node_or_nil(pos)
|
||||
local bref = bnod and minetest.registered_items[bnod.name]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user