mirror of
https://codeberg.org/tenplus1/teleport_potion.git
synced 2025-03-15 06:01:24 +00:00
added meta error check
This commit is contained in:
parent
7c8b2dde92
commit
865dd1475a
1 changed files with 3 additions and 0 deletions
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…
Add table
Reference in a new issue