Skip to content

Commit

Permalink
Merge pull request #36 from ari-steas/NetworkRework
Browse files Browse the repository at this point in the history
Temporary patch to limit gigapackets
  • Loading branch information
ari-steas authored Dec 14, 2024
2 parents 5ce9802 + bed6997 commit 4ddc26a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ internal void Load()
if (validData && load.Version == Session.VersionControl)
{
Repo = load;
if (collection.Count > 25)
collection = collection.GetRange(0, 25); // TODO do better with this, this is awful. Temporary patch.

if (Session.I.IsServer)
Repo.Values.Targets = new ProtoWeaponTransferTarget[collection.Count];

Expand Down Expand Up @@ -77,6 +80,9 @@ internal void Load()
}
else
{
if (collection.Count > 25)
collection = collection.GetRange(0, 25); // TODO this is a bad temporary patch.

Repo = new ProtoWeaponRepo
{
Values = new ProtoWeaponComp
Expand Down

0 comments on commit 4ddc26a

Please sign in to comment.