summaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/lll/tools/InsnSequence.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-04-14 01:22:48 +0200
committer zaaarf <zaaarf@proton.me>2023-04-14 01:22:48 +0200
commit8cc440017f688494ca50d0e071799c164e3640f0 (patch)
tree7cdf3a7663919fa02d5cf49920601231b07cd9d1 /src/main/java/ftbsc/lll/tools/InsnSequence.java
parent05c9f6c3a2458ecdedbce1468b7a8cd2e0ca2b6f (diff)
fix: should not ignore on first element of pattern0.4.2
Diffstat (limited to 'src/main/java/ftbsc/lll/tools/InsnSequence.java')
-rw-r--r--src/main/java/ftbsc/lll/tools/InsnSequence.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/ftbsc/lll/tools/InsnSequence.java b/src/main/java/ftbsc/lll/tools/InsnSequence.java
index ae9bef0..d00292e 100644
--- a/src/main/java/ftbsc/lll/tools/InsnSequence.java
+++ b/src/main/java/ftbsc/lll/tools/InsnSequence.java
@@ -58,7 +58,7 @@ public class InsnSequence extends InsnList {
index = Math.abs(index);
if(index > size())
throw new IndexOutOfBoundsException();
- return this.toArray()[size() - index];
+ return super.get(size() - index);
}
/**
@@ -72,7 +72,7 @@ public class InsnSequence extends InsnList {
/**
* Wraps InsnList's add() to throw an exception
- * when fed null values.
+ * when given null values.
* @param node to add
*/
@Override