transfer - locked rooms

This commit is contained in:
jslightham
2019-05-26 23:22:51 -04:00
parent d597a1489b
commit 5a5f4fc06a
4 changed files with 46 additions and 21 deletions

View File

@@ -23,7 +23,13 @@ public class Player extends Entity{
}
public void removeFromInventory(Item item){
inventory.remove(item);
for(int i =0; i<inventory.size(); i++) {
if(item.equals(inventory.get(i))) {
inventory.remove(i);
return;
}
}
}