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

Remove area protection checks #91

Closed Niklp09 closed 2 months ago

Niklp09 commented 2 months ago

Closes https://github.com/Archtec-io/bugtracker/issues/194 Concept approved by SwissalpS.

SwissalpS commented 2 months ago

check hook could have a signature like function travelnet.protection(pos, player, context) where context is a string or 'enum' for one of: remove, edit, first setup. optionally node could also be passed so that doesn't need to be looked up again.

I don't think a .register_check(f) type of hook is needed here.

SwissalpS commented 2 months ago

partially addresses #31

BuckarooBanzay commented 2 months ago

lgtm :+1: