resource stacking bug
This commit is contained in:
1 parent
dd548acfe1
commit
d058e7506a
1 file changed
+4
-1
@@ -1280,8 +1280,11 @@ public class CharacterItemManager {
|
||||
if (ib != null)
|
||||
this.inventoryWeight += ib.getWeight();
|
||||
} else{
|
||||
this.inventory.removeAll(purge);
|
||||
i.setNumOfItems(count);
|
||||
for(Item item : purge){
|
||||
this.delete(item);
|
||||
}
|
||||
this.inventory.removeAll(purge);
|
||||
this.inventory.add(i);
|
||||
}
|
||||
this.updateInventory();
|
||||
|
||||
Reference in new issue
Block a user