Fix eclipses not being sent, enable certain SSC functions if Main.ServerSideCharacter instead
This commit is contained in:
parent
5225a55e76
commit
10634c4621
4 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue