High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies https://papermc.io/
Find a file
CraftBukkit/Spigot 5c9c366ee5 Make AnvilInventory.getItem() use both containers. Fixes BUKKIT-2788
The AnvilInventory reports its size as the sum of the ingredient and
result inventories, but when trying to access the slots, only the
ingredient inventory is used, leading to an ArrayIndexOutOfBounds exception.

This change overrides getItem(I) and setItem(I) to use both inventories,
with the slot number adjusted based on their size.

By: Andre LeBlanc <andre@norcode.com>
2013-04-06 12:00:31 -04:00
paper-server Make AnvilInventory.getItem() use both containers. Fixes BUKKIT-2788 2013-04-06 12:00:31 -04:00