Skip to content

Commit

Permalink
Add protection to prevent crash in #282
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Aug 3, 2024
1 parent b12ed9f commit 7dcfc16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ minecraft_version=1.21
# as they do not follow standard versioning conventions.
minecraft_version_range=[1.21,1.22)
# The Neo version must agree with the Minecraft version to get a valid artifact
neo_version=21.0.139-beta
neo_version=21.0.150
# The Neo version range can use any version of Neo as bounds
neo_version_range=[21.0,)
# The loader version range can only use the major version of FML as bounds
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ public boolean findItemStackForStocker(StockerCardCache stockerCardCache, IItemH
}
transferResult.doIt(); //Move the items for real - we have both extractor/inserter caches from the above method
int lastSlot = transferResult.results.get(transferResult.results.size() - 1).extractSlot; //The last slot we pulled from in this inventory
if (!laserNodeItemHandler.handler.getStackInSlot(lastSlot).isEmpty()) //If its not empty now
if (lastSlot < laserNodeItemHandler.handler.getSlots() && !laserNodeItemHandler.handler.getStackInSlot(lastSlot).isEmpty()) //If its not empty now
stockerDestinationCache.put(new StockerRequest(stockerCardCache, new ItemStackKey(itemStack, stockerCardCache.isCompareNBT)), new StockerSource(inserterCardCache, lastSlot)); //Add to the cache
return true;
}
Expand Down

0 comments on commit 7dcfc16

Please sign in to comment.