Skip to content

Commit

Permalink
Fix the nights pref trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
LakeYS committed Nov 1, 2019
1 parent beda48c commit 8c63e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Support_Render/render.cs
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ function Render_Spawn_Loop()
if(!$Pref::Server::RenderDisableEnvSpawn && %isDaytime)
%skipSpawn = 1;

if(!Render_Nights_Check(%isDaytime))
if($Pref::Server::RenderNights != 0 && !Render_Nights_Check(%isDaytime))
%skipSpawn = 1;

// Log the sunlight check for the Nights pref (After the check, of course)
Expand Down

0 comments on commit 8c63e7e

Please sign in to comment.