From 7c191c15e3a16c5c4c53f6d83c89fe6d1219b6e5 Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 25 May 2021 20:33:43 -0400 Subject: Make sure to always restart activity if no queued_actions --- app/controllers/game_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/game_controller.rb') diff --git a/app/controllers/game_controller.rb b/app/controllers/game_controller.rb index c5bfdbc..4b96b49 100644 --- a/app/controllers/game_controller.rb +++ b/app/controllers/game_controller.rb @@ -102,6 +102,8 @@ class GameController < ApplicationController current_char.stop_activity @results.push({ type: "message", body: "You have finished your work." }) end + else + current_char.activity_started_at = Time.now end end rescue ItemQuantityError -- cgit v1.2.3