Skip to content

Commit

Permalink
Add forgotten negative index check
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed Jul 23, 2023
1 parent 989e568 commit 64f3328
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,12 @@ private Object2IntMap<AEItemKey> getChain(BulkCellInventory cell) {
Collections.reverse(keys);

var decompressed = new Object2IntLinkedOpenHashMap<AEItemKey>();
var highest = keys.indexOf(cell.getHighestCompressed());

for (var key : keys.subList(keys.indexOf(cell.getHighestCompressed()), keys.size())) {
decompressed.put(key, c.getInt(key));
if (highest > -1) {
for (var key : keys.subList(highest, keys.size())) {
decompressed.put(key, c.getInt(key));
}
}

return decompressed;
Expand Down
2 changes: 1 addition & 1 deletion fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repositories {

maven {
name = "LadySnake Libs"
url = uri("https://ladysnake.jfrog.io/artifactory/mods")
url = uri("https://maven.ladysnake.org/releases")
content {
includeGroup("dev.onyxstudios.cardinal-components-api")
}
Expand Down

0 comments on commit 64f3328

Please sign in to comment.