mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 13:29:40 +00:00
Fix some stuff I missed in the merge, and server-client communication.
This commit is contained in:
1 parent
7a2461540f
commit
d29d1580bb
13 files changed
+53
-41
No files matched your search
@@ -34,7 +34,7 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||
public HashMap<Coord4D, EnumSet<ForgeDirection>> acceptorDirections = new HashMap<Coord4D, EnumSet<ForgeDirection>>();
|
||||
public HashMap<IGridTransmitter<A, N>, EnumSet<ForgeDirection>> changedAcceptors = new HashMap<>();
|
||||
|
||||
private List<DelayQueue> updateQueue = new ArrayList<DelayQueue>();
|
||||
private Set<DelayQueue> updateQueue = new LinkedHashSet<DelayQueue>();
|
||||
|
||||
protected Range4D packetRange = null;
|
||||
|
||||
@@ -326,7 +326,8 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||
q.delay--;
|
||||
} else
|
||||
{
|
||||
needsUpdate = true;
|
||||
transmittersAdded.addAll(transmitters);
|
||||
updateDelay = 1;
|
||||
i.remove();
|
||||
}
|
||||
}
|
||||
@@ -424,5 +425,17 @@ public abstract class DynamicNetwork<A, N extends DynamicNetwork<A, N>> implemen
|
||||
player = p;
|
||||
delay = 5;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return player.hashCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o)
|
||||
{
|
||||
return o instanceof DelayQueue && ((DelayQueue)o).player.equals(this.player);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user