Skip to content

Commit

Permalink
add assert back
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefZander committed Nov 19, 2024
1 parent aa33f32 commit 5a36f58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mods/sbz_base/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ minetest.register_on_newplayer(function(player)
end)

minetest.register_on_joinplayer(function(ref, last_login)
-- We are not forcing MT versions on people in this way: assert(minetest.change_player_privs, "You have an outdated version of minetest, please update!")

-- TODO: REWRITE NOT TO USE THIS FUNCTION!!
assert(minetest.change_player_privs, "You have an outdated version of minetest, please update!")
minetest.change_player_privs(ref:get_player_name(), {
home = true,
tp = true
Expand Down

0 comments on commit 5a36f58

Please sign in to comment.