Merge pull request #6 from archfan7411/patch-1

Remove debug command
This commit is contained in:
Gerold55 2019-04-05 01:05:57 -04:00 committed by GitHub
commit db6e0411bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,15 +150,6 @@ if damage_enabled then
thirst.set_player_hud_def(name, thirst.get_player_thirst(name)) thirst.set_player_hud_def(name, thirst.get_player_thirst(name))
end) end)
minetest.register_chatcommand("set_thirst", {
params = "",
func = function(name, params)
amount = tonumber(params)
thirst.set_player_thirst(name, amount)
minetest.chat_send_all("Current thirst data:\n" .. dump(thirst.players))
end
})
-- Reset player thirst on die. -- Reset player thirst on die.
minetest.register_on_respawnplayer(function(player) minetest.register_on_respawnplayer(function(player)