luk3yx / minetest-cloaking

Allows players to go invisible in Minetest!
MIT License
4 stars 3 forks source link

Allow detection of cloaking and uncloaking in leaveplayer and joinplayer callbacks #10

Closed oversword closed 1 month ago

oversword commented 1 month ago

The broader goal of this PR is to allow for other mods to be more usable while cloaked, if they can detect cloaking and uncloaking in the leaveplayer and joinplayer callbacks, they can decide whether or not to actually perform the action.

This will allow more comprehensive solutions to problems like this: https://github.com/minetest-mods/unified_inventory/pull/248

Changes: