thirst factor should change for all players on server.
parent
19de51fd25
commit
6309978b10
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue