Closed fluxionary closed 5 years ago
Note that minetest.check_player_privs(player, {interact=false}) is semantically identical to minetest.check_player_privs(player, {interact=true}).
Thank you. It should be documented. Also I haven't found a way to revoke interact priv on singleplayer for testing the change so I had to send it without testing.
@int-ua :
I haven't found a way to revoke interact priv on singleplayer for testing the change so I had to send it without testing.
For that, I'd recommend running a local server - just check the "Host Server" box before you start your world (but make sure not to check "Announce Server"). You can also fiddle your single-player privs in the auth db, but that's more complicated.
The privilege check was backwards; This resulted in players with the interact privilege not being able to lose or gain stamina once their stamina dropped below the heal threshold. I assume players w/out interact would still starve to death :)
Note that
minetest.check_player_privs(player, {interact=false})
is semantically identical tominetest.check_player_privs(player, {interact=true})
.