Skip to content

Commit

Permalink
Update for MoWeather v0.3.90
Browse files Browse the repository at this point in the history
  • Loading branch information
narc0tiq committed Aug 1, 2016
1 parent fcdaccd commit b9f95ec
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.106
0.4.107
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", player.surface) end
function get_day_time(player) return remote.call("MoWeather", "getdaytime", player.surface.index) 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 b9f95ec

Please sign in to comment.