mt-mods / travelnet

Network of teleporter-boxes that allows easy travelling to other boxes on the same network. (Mod for Minetest)
https://content.minetest.net/packages/mt-mods/travelnet/
GNU General Public License v3.0
7 stars 12 forks source link

Fix travelling on own network when `allow_travel` is false #82

Closed Niklp09 closed 11 months ago

Niklp09 commented 11 months ago

Fix https://github.com/mt-mods/travelnet/issues/80

OgelGames commented 11 months ago

I think it's better to add this to the travelnet.allow_travel function so that it can be changed by overriding the function, as is done here: https://github.com/pandorabox-io/pandorabox_custom/blob/349d83427f10976448e4e98ea2c67447a4e364b0/travel/travelnet.lua#L62