Removing debug code now that the bug was found.

This commit is contained in:
Auke Kok 2019-01-18 16:38:49 -08:00
parent 827cfc565f
commit 8447ab9d2a

View File

@ -201,16 +201,13 @@ register_teleport("boxes:enter_teleport", {
return
elseif is_series == 2 then
print(dump(ranks))
if not ranks or not ranks.categories then
minetest.log("error", "ranks mod not found, can't use category teleport")
return true
end
-- get the list of boxes for category (id)
print(dump(ranks.categories))
local catboxes = ranks.categories[tostring(id)]
print(dump(catboxes))
-- first, find first unplayed box in dynamic series
local name = player:get_player_name()