[SPIGOT-7666] Llama ArrayIndexOutOfBoundsException when doing Llama#getInventory#setDecor Created: 10/May/24 Updated: 25/Dec/24 Resolved: 10/May/24 |
|
| Status: | Resolved |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | HexedHero | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Version: | This server is running CraftBukkit version 4161-Spigot-e2c1eee-6118e53 (MC: 1.20.6) (Implementing API version 1.20.6-R0.1-SNAPSHOT) |
| Guidelines Read: | Yes |
| Description |
|
Doing: {
final Llama llama = (Llama) ((Player) sender).getWorld().spawnEntity(((Player) sender).getLocation(), EntityType.LLAMA); llama.getInventory().setDecor(new ItemStack(Material.GREEN_CARPET)); // Problematic code
} Causes: Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1 |
| Comments |
| Comment by HexedHero [ 10/May/24 ] |
|
Wrong project, sorry. Dunno why it decided to do that. |