diff options
-rw-r--r-- | src/esieequest/controller/commands/UseCommand.java | 4 | ||||
-rw-r--r-- | src/esieequest/model/items/Beamer.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/esieequest/controller/commands/UseCommand.java b/src/esieequest/controller/commands/UseCommand.java index 170050e..c90bb8f 100644 --- a/src/esieequest/controller/commands/UseCommand.java +++ b/src/esieequest/controller/commands/UseCommand.java | |||
@@ -30,10 +30,6 @@ public class UseCommand implements Executable { | |||
30 | final Item item = game.getPlayer().getInventory().getItem(itemName); | 30 | final Item item = game.getPlayer().getInventory().getItem(itemName); |
31 | item.use(game, view); | 31 | item.use(game, view); |
32 | 32 | ||
33 | view.updateLocation(game.getPlayer().getCurrentRoom(), game.getPlayer() | ||
34 | .getCurrentDirection(), game.getPlayer().getCurrentSide(), game.getPlayer() | ||
35 | .canGoBack()); | ||
36 | |||
37 | } | 33 | } |
38 | 34 | ||
39 | } | 35 | } |
diff --git a/src/esieequest/model/items/Beamer.java b/src/esieequest/model/items/Beamer.java index b452e87..053be18 100644 --- a/src/esieequest/model/items/Beamer.java +++ b/src/esieequest/model/items/Beamer.java | |||
@@ -41,6 +41,10 @@ public class Beamer extends SimpleItem { | |||
41 | view.echo(Text.BEAMER_TELEPORTED.toString()); | 41 | view.echo(Text.BEAMER_TELEPORTED.toString()); |
42 | this.room = null; | 42 | this.room = null; |
43 | } | 43 | } |
44 | |||
45 | view.updateLocation(game.getPlayer().getCurrentRoom(), game.getPlayer() | ||
46 | .getCurrentDirection(), game.getPlayer().getCurrentSide(), game.getPlayer() | ||
47 | .canGoBack()); | ||
44 | } | 48 | } |
45 | 49 | ||
46 | @Override | 50 | @Override |