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,13 +533,16 @@ namespace TShockAPI
args.TPlayer.hostile = pvp; args.TPlayer.hostile = pvp;
if (pvp == true && TShock.Config.AlwaysPvP) if (TShock.Config.AlwaysPvP)
{
if (pvp == true)
args.Player.IgnoreActionsForPvP = false; args.Player.IgnoreActionsForPvP = false;
else else
{ {
args.Player.Spawn(); args.Player.Spawn();
args.Player.IgnoreActionsForPvP = true; args.Player.IgnoreActionsForPvP = true;
} }
}
NetMessage.SendData((int)PacketTypes.TogglePvp, -1, -1, "", args.Player.Index); NetMessage.SendData((int)PacketTypes.TogglePvp, -1, -1, "", args.Player.Index);