Fixed another bug

This commit is contained in:
Billy S 2019-03-02 14:32:03 -05:00
parent 0668c80e9f
commit 8ef0976578

View File

@ -62,8 +62,7 @@ local function register_teleport_solution(shortname, stonetype, tex, ing, num)
alchemy.register_timed_effect(shortname, {
effect_name = "Warp countdown",
duration = 5,
on_end = function(n)
local p = minetest.get_player_by_name(n)
on_end = function(p)
if p then
local pos = alchemy.teleport_stones[n][shortname]
if pos == nil then