added meta error check

master
TenPlus1 2016-06-01 13:28:54 +01:00
parent 7c8b2dde92
commit 865dd1475a
1 changed files with 3 additions and 0 deletions

View File

@ -310,6 +310,9 @@ minetest.register_abm({
-- get coords from pad/portal
local meta = minetest.get_meta(pos)
if not meta then return end -- errorcheck
local target_coords = {
x = meta:get_int("x"),
y = meta:get_int("y"),