Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit feee695

Browse files
author
Dave Tucker
committed
Sunny all the time!
Fixes #43 Signed-off-by: Dave Tucker <dt@docker.com>
1 parent 94010e4 commit feee695

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

world/Plugins/Docker/docker.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function Initialize(Plugin)
3030
cPluginManager:AddHook(cPluginManager.HOOK_CHUNK_GENERATING, OnChunkGenerating);
3131
cPluginManager:AddHook(cPluginManager.HOOK_PLAYER_FOOD_LEVEL_CHANGE, OnPlayerFoodLevelChange);
3232
cPluginManager:AddHook(cPluginManager.HOOK_TAKE_DAMAGE, OnTakeDamage);
33+
cPluginManager:AddHook(cPluginManager.HOOK_WEATHER_CHANGING, OnWeatherChanging);
3334
cPluginManager:AddHook(cPluginManager.HOOK_SERVER_PING, OnServerPing);
3435
cPluginManager:AddHook(cPluginManager.HOOK_TICK, Tick);
3536

@@ -412,3 +413,8 @@ function OnServerPing(ClientHandle, ServerDescription, OnlinePlayers, MaxPlayers
412413
return false, ServerDescription, OnlinePlayers, MaxPlayers, Favicon
413414
end
414415

416+
-- Make it sunny all the time!
417+
function OnWeatherChanging(World, Weather)
418+
return true, wSunny
419+
end
420+

0 commit comments

Comments
 (0)