
Java throws ArrayIndexOutOfBountsException when using trade with the offer index of the last offer
leo3065 opened this issue ยท 1 comments
The screenshot is shown below. The villager associated with the trading interface has 8 offers.
I think the issue comes from these lines. The >
in trade-1 > tileEntity.villager.getOffers().stream().toList().size()
should be >=
instead?