干掉IgnoreSSCPackets
This commit is contained in:
parent
4f456346bf
commit
004a459bba
2 changed files with 3 additions and 1 deletions
|
|
@ -2973,7 +2973,7 @@ namespace TShockAPI
|
|||
var id = args.Data.ReadInt16();
|
||||
var owner = args.Data.ReadInt8();
|
||||
|
||||
if (id < 0 || id > 400)
|
||||
if (id is < 0 or > 400)
|
||||
return true;
|
||||
|
||||
if (id == 400 && owner == 255)
|
||||
|
|
|
|||
|
|
@ -611,8 +611,10 @@ namespace TShockAPI
|
|||
|
||||
var response = NetCreativeUnlocksPlayerReportModule.SerializeSacrificeRequest(player.Index,i, amount);
|
||||
NetManager.Instance.SendToClient(response, player.Index);
|
||||
|
||||
}
|
||||
}
|
||||
player.IgnoreSSCPackets = false;
|
||||
}
|
||||
|
||||
public static void TrySendingItemArray(int plr, Item[] array, int slotStartIndex,int remoteClient = -1, int ignoreClient = -1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue