mirror of
https://notabug.org/TenPlus1/protector.git
synced 2025-01-24 15:21:30 +01:00
added meta nil check
This commit is contained in:
parent
534364e9c3
commit
3331132a4b
4
init.lua
4
init.lua
@ -530,6 +530,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
local pos = minetest.string_to_pos(pos_s)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
||||
if not meta then
|
||||
return
|
||||
end
|
||||
|
||||
-- only owner can add names
|
||||
if not protector.can_dig(1, pos, player:get_player_name(), true, 1) then
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user