mt-mods / mooncontroller

enhanced luacontroller (experimental)
Other
3 stars 0 forks source link

disable protection-check on tab-change #3

Closed BuckarooBanzay closed 1 year ago

BuckarooBanzay commented 1 year ago

This PR removes the protection-check for tab-changes

Reading the code of controllers in protected areas works with this again.

CC: FeXoR :)

FeXoR-o-Illuria commented 1 year ago

Thank you :)

I hope that doesn't lead to side effects like when one player is in the formspec and another enters it and changes the tabs. But you probably know better ;)

BuckarooBanzay commented 1 year ago

when one player is in the formspec and another enters it and changes the tabs

This actually can happen, but you can't have both: either a secured formspec or switcheable tabs...

FeXoR-o-Illuria commented 1 year ago

Hm, OK. But I still think this is the way to go. Thank you again for this quick change ;)