Fix eclipses not being sent, enable certain SSC functions if Main.ServerSideCharacter instead

This commit is contained in:
MarioE 2014-06-24 00:28:01 -04:00
parent 5225a55e76
commit 10634c4621
4 changed files with 4 additions and 2 deletions

View file

@ -4171,7 +4171,7 @@ namespace TShockAPI
{
var ply = players[0];
if (ply.IsLoggedIn && TShock.Config.ServerSideCharacter)
if (ply.IsLoggedIn && Main.ServerSideCharacter)
{
ply.TPlayer.velocity.Y = -50;
TSPlayer.All.SendData(PacketTypes.PlayerUpdate, "", ply.Index);

View file

@ -2352,7 +2352,7 @@ namespace TShockAPI
}
if (args.Player.Confused && TShock.Config.ServerSideCharacter && args.Player.IsLoggedIn)
if (args.Player.Confused && Main.ServerSideCharacter && args.Player.IsLoggedIn)
{
if (args.TPlayer.controlUp)
{

View file

@ -534,6 +534,7 @@ namespace TShockAPI
DayTime = Main.dayTime,
MoonPhase = (byte)Main.moonPhase,
BloodMoon = Main.bloodMoon,
Eclipse = Main.eclipse,
MaxTilesX = (short)Main.maxTilesX,
MaxTilesY = (short)Main.maxTilesY,
SpawnX = (short)Main.spawnTileX,

View file

@ -1367,6 +1367,7 @@ namespace TShockAPI
DayTime = Main.dayTime,
MoonPhase = (byte)Main.moonPhase,
BloodMoon = Main.bloodMoon,
Eclipse = Main.eclipse,
MaxTilesX = (short)Main.maxTilesX,
MaxTilesY = (short)Main.maxTilesY,
SpawnX = (short)Main.spawnTileX,