Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
[hungry_games] Reset inventories upon player join (for #102)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lymkwi committed Aug 10, 2016
1 parent 86da2fd commit cc96b76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mods/hungry_games/engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@ minetest.register_on_joinplayer(function(player)
privs.ingame = nil
minetest.set_player_privs(name, privs)

-- Reset their stuff
drop_player_items(name, true)

if ingame then
player:set_nametag_attributes({color = {a=255, r=255, g=0, b=0}})
minetest.after(1, survival.player_hide_hudbar, name)
Expand Down

0 comments on commit cc96b76

Please sign in to comment.