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,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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue