From 24e98169e6821f1728b889a6e33c8dc4e9f49a33 Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Sat, 6 Aug 2022 17:22:13 -0400 Subject: [PATCH] fix excisor's sometimes disintegrating lists --- .../hexcasting/common/casting/operators/lists/OpRemove.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/lists/OpRemove.kt b/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/lists/OpRemove.kt index d91d66d1..5905ca38 100644 --- a/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/lists/OpRemove.kt +++ b/Common/src/main/java/at/petrak/hexcasting/common/casting/operators/lists/OpRemove.kt @@ -11,7 +11,7 @@ object OpRemove : ConstManaOperator { val list = args.getChecked(0, argc).toMutableList() val index = args.getChecked(1, argc).toInt() if (index < 0 || index >= list.size) - return list + return list.asSpellResult list.removeAt(index) return list.asSpellResult }