From 8cc440017f688494ca50d0e071799c164e3640f0 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Fri, 14 Apr 2023 01:22:48 +0200 Subject: fix: should not ignore on first element of pattern --- src/main/java/ftbsc/lll/tools/InsnSequence.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/ftbsc/lll/tools/InsnSequence.java') 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 -- cgit v1.2.3-56-ga3b1