thirst factor should change for all players on server.

master
NathanSalapat 2016-01-20 11:08:08 -06:00
parent 19de51fd25
commit 6309978b10
1 changed files with 5 additions and 2 deletions

View File

@ -88,8 +88,11 @@ local day = mymonths.day_counter
mymonths.month = m2
mymonths.day_speed = m3
mymonths.night_speed = m4
if thirst == true then --This effects the players thirst speed.
thirsty.set_thirst_factor(player, m5) --I'm assuming that a faster factor means getting thirsty faster???
if thirst == true then
for _,player in ipairs(minetest.get_connected_players()) do
local name = player:get_player_name()
thirsty.set_thirst_factor(name, m5)
end
end
end
end