Fixed /time

This commit is contained in:
White 2015-07-05 11:32:01 +09:30
parent 789ab2c7cc
commit af7ee24de4
2 changed files with 7 additions and 2 deletions

View file

@ -1027,7 +1027,7 @@ namespace TShockAPI
{
Main.dayTime = dayTime;
Main.time = time;
TSPlayer.All.SendData(PacketTypes.TimeSet, "", 0, 0, Main.sunModY, Main.moonModY);
TSPlayer.All.SendData(PacketTypes.TimeSet, "", dayTime ? 1 : 0, (int)time, Main.sunModY, Main.moonModY);
}
public void SpawnNPC(int type, string name, int amount, int startTileX, int startTileY, int tileXRange = 100,