added meta error check
This commit is contained in:
parent
7c8b2dde92
commit
865dd1475a
3
init.lua
3
init.lua
@ -310,6 +310,9 @@ minetest.register_abm({
|
|||||||
|
|
||||||
-- get coords from pad/portal
|
-- get coords from pad/portal
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
|
||||||
|
if not meta then return end -- errorcheck
|
||||||
|
|
||||||
local target_coords = {
|
local target_coords = {
|
||||||
x = meta:get_int("x"),
|
x = meta:get_int("x"),
|
||||||
y = meta:get_int("y"),
|
y = meta:get_int("y"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user