aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-06-05 12:22:46 +0200
committerPacien TRAN-GIRARD2014-06-05 12:22:46 +0200
commitd5c01c480fb7d3b3d66abef3a1bf36f641698f26 (patch)
tree210c0ca49e8df92ead9707d5377aa3e8e6250357
parent6df5ed2a0e079aaa7d77a5c1819a0af40fef1a12 (diff)
downloadesieequest-d5c01c480fb7d3b3d66abef3a1bf36f641698f26.tar.gz
Simplify item taking
-rw-r--r--src/esieequest/game/items/Inventory.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/esieequest/game/items/Inventory.java b/src/esieequest/game/items/Inventory.java
index 6bbda23..04f5a0b 100644
--- a/src/esieequest/game/items/Inventory.java
+++ b/src/esieequest/game/items/Inventory.java
@@ -150,9 +150,7 @@ public class Inventory implements SerialisableList {
150 * @return the Item 150 * @return the Item
151 */ 151 */
152 public Item takeItem(final String itemName) { 152 public Item takeItem(final String itemName) {
153 final Item item = this.getItem(itemName); 153 return this.items.remove(itemName);
154 this.removeItem(item);
155 return item;
156 } 154 }
157 155
158 /** 156 /**