mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-15 18:30:27 -04:00
Gnah, missed one. Should *fully* fix #859 now.
This commit is contained in:
parent
10c7276ecf
commit
c30d5b29ff
@ -93,7 +93,7 @@ trait Connector extends network.Connector with Node {
|
|||||||
// we get ignored if our size is zero.
|
// we get ignored if our size is zero.
|
||||||
localBufferSize = clampedSize
|
localBufferSize = clampedSize
|
||||||
if (network != null) {
|
if (network != null) {
|
||||||
if (localBufferSize <= 0 && clampedSize > 0) d.addConnector(this)
|
if (oldSize <= 0 && clampedSize > 0) d.addConnector(this)
|
||||||
else if (oldSize > 0 && clampedSize == 0) d.removeConnector(this)
|
else if (oldSize > 0 && clampedSize == 0) d.removeConnector(this)
|
||||||
else d.globalBufferSize = math.max(d.globalBufferSize - oldSize + clampedSize, 0)
|
else d.globalBufferSize = math.max(d.globalBufferSize - oldSize + clampedSize, 0)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user