[SPIGOT-1560] 1.9 Set Contents Created: 01/Mar/16  Updated: 01/Mar/16  Resolved: 01/Mar/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Mason Grosset Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: 1.9, Inventory
Environment:

I don't believe this should matter. I'm using Windows 10, and coding in IntelliJ.


Plugin: AutoPickup

 Description   

I receive an error when doing this on 1.9 (and not 1.8):
player.getInventory().setContents(player.getInventory().getContents());

The error is: http://hastebin.com/arezeyiraz.avrasm

I also recieved a similar error with Inventory inv = Bukkit.createInventory(null, player.getInventory().getSize());

Thanks for your hard work.



 Comments   
Comment by Mason Grosset [ 01/Mar/16 ]

Sorry, thanks for the quick response!

Comment by mxp [ 01/Mar/16 ]

It was fixed by f0c37a16714f54355e9a6a1e61025b435faf6ef6

Generated at Sat Dec 13 15:25:14 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.