Skip to content

Commit

Permalink
Allow NetModule for loadout
Browse files Browse the repository at this point in the history
  • Loading branch information
sgkoishi committed Jun 24, 2024
1 parent 97b52cb commit 3853bb3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Core/Modded.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ or PacketTypes.PlayerHp or PacketTypes.PlayerMana or PacketTypes.PlayerBuff
// TShock use RemoveItemOwner(400) to ping the client after SSC
return false;
}
if (Terraria.Main.ServerSideCharacter && packetId is PacketTypes.LoadNetModule)
{
// TShock send SyncLoadout and the client returns a LoadNetModule(LoadoutChange)
return false;
}
if (allowedPackets.Contains(packetId))
{
// Dimensions use Placeholder 67 to show the IP address
Expand Down

0 comments on commit 3853bb3

Please sign in to comment.