mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-08-21 12:04:05 +02: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
|
pos = pointed_thing.above
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not pos then return end
|
||||||
|
|
||||||
local bnod = pos and minetest.get_node_or_nil(pos)
|
local bnod = pos and minetest.get_node_or_nil(pos)
|
||||||
local bref = bnod and minetest.registered_items[bnod.name]
|
local bref = bnod and minetest.registered_items[bnod.name]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user