A special fix to the awesome Gravemind. Thank you.

This commit is contained in:
Zidonuke 2011-12-21 02:05:01 -05:00
parent c06bf2fe2e
commit ddaf849ddf

View file

@ -533,12 +533,15 @@ namespace TShockAPI
args.TPlayer.hostile = pvp;
if (pvp == true && TShock.Config.AlwaysPvP)
args.Player.IgnoreActionsForPvP = false;
else
if (TShock.Config.AlwaysPvP)
{
args.Player.Spawn();
args.Player.IgnoreActionsForPvP = true;
if (pvp == true)
args.Player.IgnoreActionsForPvP = false;
else
{
args.Player.Spawn();
args.Player.IgnoreActionsForPvP = true;
}
}
NetMessage.SendData((int)PacketTypes.TogglePvp, -1, -1, "", args.Player.Index);