Remove config hotpatch because real fix is in.

This commit is contained in:
Zack Piispanen 2013-10-26 21:57:47 -04:00
parent af3e5dfddb
commit c54f7bd850
2 changed files with 0 additions and 19 deletions

View file

@ -276,10 +276,6 @@ namespace TShockAPI
[Description("Forces your world to be in Halloween mode regardless of the data.")] public bool ForceHalloween = false;
[Description("Disables the pumpkin moon when the night is over, regardless of wave.")] public bool DisablePumpkinMoonOnDaybreak = false;
[Description("Disables the pumpkin moon when the night is over if you reached wave 15.")] public bool DisablePumpkinMoonAfterWave15 = false;
/// <summary>
/// Reads a configuration file from a given path
/// </summary>

View file

@ -648,7 +648,6 @@ namespace TShockAPI
}
}
private bool lastTickDay = false;
private void OnSecondUpdate()
{
if (Config.ForceTime != "normal")
@ -663,20 +662,6 @@ namespace TShockAPI
break;
}
}
if (!lastTickDay && Main.dayTime)
{
lastTickDay = true;
if (Config.DisablePumpkinMoonOnDaybreak || (Config.DisablePumpkinMoonAfterWave15 && NPC.waveCount == 15))
{
Main.pumpkinMoon = false;
}
}
else if (lastTickDay && !Main.dayTime)
{
lastTickDay = false;
}
foreach (TSPlayer player in Players)
{