Skip to content

Commit a6e8176

Browse files
committed
Fix items in logistical transporters disappearing after the first transporter (#8122)
1 parent 212758e commit a6e8176

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/mekanism/common/content/network/transmitter/LogisticalTransporterBase.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ public void onUpdateServer() {
253253

254254
if (!deletes.isEmpty() || !needsSync.isEmpty()) {
255255
//Notify clients, so that we send the information before we start clearing our lists
256-
PacketUtils.sendToAllTracking(PacketTransporterBatch.create(pos, deletes, needsSync), getTransmitterTile());
256+
//Note: We have to copy needsSync so that it still has values when we clear the pending sync packets
257+
PacketUtils.sendToAllTracking(PacketTransporterBatch.create(pos, deletes, new Int2ObjectOpenHashMap<>(needsSync)), getTransmitterTile());
257258
// Now remove any entries from transit that have been deleted
258259
OfInt ofInt = deletes.iterator();
259260
while (ofInt.hasNext()) {

0 commit comments

Comments
 (0)