A special fix to the awesome Gravemind. Thank you.
This commit is contained in:
parent
c06bf2fe2e
commit
ddaf849ddf
1 changed files with 8 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue