Skip to content

Commit

Permalink
added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Baldie-dev committed Apr 16, 2021
1 parent 234a2b4 commit 8427ebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public void ProcessPacket(BeltUpdatePickupItemsPacket packet, NebulaConnection c
{
if (GameMain.data.factories[packet.FactoryIndex]?.cargoTraffic != null)
{
//Iterate though belt updates and remove target items
for (int i = 0; i < packet.BeltUpdates.Length; i++)
{
CargoTraffic traffic = GameMain.data.factories[packet.FactoryIndex].cargoTraffic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class BeltUpdatePickupItemsProcessor : IPacketProcessor<BeltUpdatePickupItemsPac
{
public void ProcessPacket(BeltUpdatePickupItemsPacket packet, NebulaConnection conn)
{
for(int i = 0; i < packet.BeltUpdates.Length; i++)
//Iterate though belt updates and remove target items
for (int i = 0; i < packet.BeltUpdates.Length; i++)
{
CargoTraffic traffic = GameMain.data.factories[packet.FactoryIndex].cargoTraffic;
CargoPath cargoPath = traffic.GetCargoPath(traffic.beltPool[packet.BeltUpdates[i].BeltId].segPathId);
Expand Down

0 comments on commit 8427ebd

Please sign in to comment.