You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Lua API, if you call minetest.player_exists after calling minetest.remove_player on the same player, minetest.player_exists always returns true.
Make sure the player “abc” did not join while entering above commands
Expected output:
true
0
false
Actual output:
true
0
true
Observations:
If you restart the server again after entering the final command, then you try to do /lua print(dump(minetest.player_exists("abc")) once again, you still get true returned.
If you let player “abc” join again, the player spawns as if a new player; all items and stuff are gone (expected behaviour)
It seems, as soon as the player “abc” joined at any point in the server's history, minetest.player_exists will start to return true for that player no matter what.
In the Lua API, if you call
minetest.player_exists
after callingminetest.remove_player
on the same player,minetest.player_exists
always returnstrue
.How to reproduce:
luacmd
mod enabledExpected output:
Actual output:
Observations:
/lua print(dump(minetest.player_exists("abc"))
once again, you still gettrue
returned.It seems, as soon as the player “abc” joined at any point in the server's history,
minetest.player_exists
will start to returntrue
for that player no matter what.Tested in: 1681a00
The text was updated successfully, but these errors were encountered: