Saving Inventory with Dependency Injection

I'm trying to open someone's Inventory in a different class than were I created the Inventory. I don't want to use statics so I tried a workaround with Dependency Injections. I made an ArrayList inventories, after that I add the created Inventory to the ArrayList. Here's the problem though, on reload the ArrayList gets wiped (of course), would there be a solution to still keep the Inventory in life without having it to be written down in a config or database. Because now players won't be able to open this...

Read More »

By: StackOverFlow - Thursday, 8 November

Related Posts