summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/EntityFireball.java
diff options
context:
space:
mode:
authorAndre LeBlanc <andre@norcode.com>2013-04-06 12:00:31 -0400
committerTravis Watkins <amaranth@ubuntu.com>2014-04-18 13:21:21 -0500
commit5d24f2b9c0ef2d6d136e36a64c530a1fde657f5c (patch)
tree22f83666c5f7a4c3f58fad095cdabe3e5a282a07 /src/main/java/net/minecraft/server/EntityFireball.java
parent47367210f3f74acc831d3f8a15a52aa693fbe7bb (diff)
downloadcraftbukkit-5d24f2b9c0ef2d6d136e36a64c530a1fde657f5c.tar
craftbukkit-5d24f2b9c0ef2d6d136e36a64c530a1fde657f5c.tar.gz
craftbukkit-5d24f2b9c0ef2d6d136e36a64c530a1fde657f5c.tar.lz
craftbukkit-5d24f2b9c0ef2d6d136e36a64c530a1fde657f5c.tar.xz
craftbukkit-5d24f2b9c0ef2d6d136e36a64c530a1fde657f5c.zip
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.
Diffstat (limited to 'src/main/java/net/minecraft/server/EntityFireball.java')
0 files changed, 0 insertions, 0 deletions