Always just knock the player off the teleport.
This commit is contained in:
parent
8447ab9d2a
commit
01b5b690df
@ -221,7 +221,7 @@ register_teleport("boxes:enter_teleport", {
|
|||||||
end
|
end
|
||||||
|
|
||||||
boxes.open_box(player, {0, tonumber(catbox), 1})
|
boxes.open_box(player, {0, tonumber(catbox), 1})
|
||||||
return
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -230,7 +230,7 @@ register_teleport("boxes:enter_teleport", {
|
|||||||
minetest.chat_send_player(name, "You've completed every " ..
|
minetest.chat_send_player(name, "You've completed every " ..
|
||||||
"box in this category! Come back later to see if " ..
|
"box in this category! Come back later to see if " ..
|
||||||
"there are new boxes in it.")
|
"there are new boxes in it.")
|
||||||
return
|
return true
|
||||||
end
|
end
|
||||||
local bmeta = db.box_get_meta(id)
|
local bmeta = db.box_get_meta(id)
|
||||||
if bmeta.type ~= db.BOX_TYPE then
|
if bmeta.type ~= db.BOX_TYPE then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user