Skip to content
Snippets Groups Projects
Commit 865dd147 authored by TenPlus1's avatar TenPlus1
Browse files

added meta error check

parent 7c8b2dde
No related branches found
No related tags found
No related merge requests found
...@@ -310,6 +310,9 @@ minetest.register_abm({ ...@@ -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"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment