Fix WorldInfo packet, window title now correctly displays the IP Address of the Network Interface the server is being hosted on.

This commit is contained in:
Enerdy 2015-07-04 22:06:27 +01:00
parent dec885baac
commit 3099f5d18c
3 changed files with 70 additions and 6 deletions

View file

@ -1606,7 +1606,7 @@ namespace TShockAPI
return true;
}
NetMessage.SendData((int) PacketTypes.TimeSet, -1, -1, "", 0, 0, Main.sunModY, Main.moonModY);
NetMessage.SendData((int) PacketTypes.TimeSet, -1, -1, "", Main.dayTime ? 1 : 0, (int)Main.time, Main.sunModY, Main.moonModY);
return false;
}
@ -2212,10 +2212,10 @@ namespace TShockAPI
private static bool HandlePlayerUpdate(GetDataHandlerArgs args)
{
var plr = args.Data.ReadInt8();
var control = (BitsByte)args.Data.ReadInt8();
var pulley = (BitsByte)args.Data.ReadInt8();
var item = args.Data.ReadInt8();
byte plr = args.Data.ReadInt8();
BitsByte control = args.Data.ReadInt8();
BitsByte pulley = args.Data.ReadInt8();
byte item = args.Data.ReadInt8();
var pos = new Vector2(args.Data.ReadSingle(), args.Data.ReadSingle());
var vel = Vector2.Zero;
if(pulley[2])