From 3ba1b796e56bd94e69b8d7d7a35f64ab5d5cc5eb Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 21 Oct 2017 13:35:35 +1100 Subject: [PATCH] Placing block while AFK makes you un-AFK. --- MCGalaxy/Player/Player.Handlers.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MCGalaxy/Player/Player.Handlers.cs b/MCGalaxy/Player/Player.Handlers.cs index 68aed3740..47d0d9d4c 100644 --- a/MCGalaxy/Player/Player.Handlers.cs +++ b/MCGalaxy/Player/Player.Handlers.cs @@ -279,6 +279,9 @@ namespace MCGalaxy { Leave(msg, msg, true); return; } + LastAction = DateTime.UtcNow; + if (IsAfk) CmdAfk.ToggleAfk(this, ""); + ExtBlock held = ExtBlock.FromRaw(buffer[offset + 8]); RawHeldBlock = held;