Update InventoryManager.java

replace with local