update alternate current to v1.5.0 (#8882)

This commit is contained in:
Space Walker 2023-02-21 17:58:18 +01:00 committed by GitHub
parent d9699b5935
commit 8b37e9e2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -725,7 +725,7 @@ index 0000000000000000000000000000000000000000..5a7209f05b549c222f6c9bc2af2a3579
+}
diff --git a/src/main/java/alternate/current/wire/WireHandler.java b/src/main/java/alternate/current/wire/WireHandler.java
new file mode 100644
index 0000000000000000000000000000000000000000..35d9017c21ce77290d8e86cceb0676666e6e0eff
index 0000000000000000000000000000000000000000..dbd0f5eee8b7f0590817673ee5f9a529bd5184cd
--- /dev/null
+++ b/src/main/java/alternate/current/wire/WireHandler.java
@@ -0,0 +1,1150 @@
@ -1347,9 +1347,9 @@ index 0000000000000000000000000000000000000000..35d9017c21ce77290d8e86cceb067666
+ WireNode wire = node.asWire();
+ findRoot(wire);
+
+ // If the wire at the given position is not in an invalid state or is not
+ // part of a larger network, we can exit early.
+ if (!wire.searched || wire.connections.total == 0) {
+ // If the wire at the given position is not in an invalid state
+ // we can exit early.
+ if (!wire.searched) {
+ return;
+ }
+