Skip to content

Commit

Permalink
Consistency in capitalisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
bearbin committed Oct 22, 2014
1 parent 8b567c9 commit 4702471
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web_weather.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ function HandleRequest_Weather(Request)
-- Times used replicate vanilla: http://minecraft.gamepedia.com/Day-night_cycle#Commands
if (Request.PostParams["SetTime"] == "Dawn") then
workWorld:SetTimeOfDay(0)
LOG("Time set to Dawn in " .. workWorldName)
LOG("Time set to dawn in " .. workWorldName)
elseif (Request.PostParams["SetTime"] == "Day") then
workWorld:SetTimeOfDay(1000)
LOG("Time set to Day in " .. workWorldName)
LOG("Time set to day in " .. workWorldName)
elseif (Request.PostParams["SetTime"] == "Dusk") then
workWorld:SetTimeOfDay(12000)
LOG("Time set to Dusk in " .. workWorldName)
LOG("Time set to dusk in " .. workWorldName)
elseif (Request.PostParams["SetTime"] == "Night") then
workWorld:SetTimeOfDay(14000)
LOG("Time set to Night in " .. workWorldName)
LOG("Time set to night in " .. workWorldName)
elseif (Request.PostParams["SetTime"] == "Midnight") then
workWorld:SetTimeOfDay(18000)
LOG("Time set to Midnight in " .. workWorldName)
LOG("Time set to midnight in " .. workWorldName)
end
end

Expand Down

0 comments on commit 4702471

Please sign in to comment.