Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Update MoWeather interface
Browse files Browse the repository at this point in the history
  • Loading branch information
narc0tiq committed Jul 8, 2016
1 parent bd376e8 commit 906bb07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.103
0.4.104
2 changes: 1 addition & 1 deletion value_sensors/day_time.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local sensor = ValueSensor.new("day_time")

if remote.interfaces.MoWeather then
-- assume MoWeather's getdaytime is sane
function get_day_time(player) return remote.call("MoWeather", "getdaytime") end
function get_day_time(player) return remote.call("MoWeather", "getdaytime", player.surface) end
else
-- 0.5 is midnight; let's make days *start* at midnight instead.
function get_day_time(player) return player.surface.daytime + 0.5 end
Expand Down

0 comments on commit 906bb07

Please sign in to comment.