From 1ac58713d0251a05c128f7ec1aacfde6cbd3249b Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 18 May 2014 23:42:39 +0200 Subject: Update location on Item use --- src/esieequest/controller/commands/UseCommand.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/esieequest/controller/commands/UseCommand.java b/src/esieequest/controller/commands/UseCommand.java index c90bb8f..170050e 100644 --- a/src/esieequest/controller/commands/UseCommand.java +++ b/src/esieequest/controller/commands/UseCommand.java @@ -30,6 +30,10 @@ public class UseCommand implements Executable { final Item item = game.getPlayer().getInventory().getItem(itemName); item.use(game, view); + view.updateLocation(game.getPlayer().getCurrentRoom(), game.getPlayer() + .getCurrentDirection(), game.getPlayer().getCurrentSide(), game.getPlayer() + .canGoBack()); + } } -- cgit v1.2.3