diff options
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockBed.cpp | 1 | ||||
-rw-r--r-- | src/Blocks/BlockCake.h | 1 | ||||
-rw-r--r-- | src/Blocks/BlockCauldron.h | 2 | ||||
-rw-r--r-- | src/Blocks/BlockWorkbench.h | 2 |
4 files changed, 6 insertions, 0 deletions
diff --git a/src/Blocks/BlockBed.cpp b/src/Blocks/BlockBed.cpp index e333c0700..79e4a0019 100644 --- a/src/Blocks/BlockBed.cpp +++ b/src/Blocks/BlockBed.cpp @@ -128,6 +128,7 @@ bool cBlockBedHandler::OnUse( SetBedPos(a_Player, a_BlockPos); SetBedOccupationState(a_ChunkInterface, a_Player.GetLastBedPos(), true); a_Player.SetIsInBed(true); + a_Player.GetStatManager().AddValue(Statistic::SleepInBed); // Fast-forward the time if all players in the world are in their beds: auto TimeFastForwardTester = [](cPlayer & a_OtherPlayer) diff --git a/src/Blocks/BlockCake.h b/src/Blocks/BlockCake.h index dbcce5f17..b7506f2e7 100644 --- a/src/Blocks/BlockCake.h +++ b/src/Blocks/BlockCake.h @@ -36,6 +36,7 @@ public: return false; } + a_Player.GetStatManager().AddValue(Statistic::EatCakeSlice); if (Meta >= 5) { a_ChunkInterface.DigBlock(a_WorldInterface, a_BlockPos); diff --git a/src/Blocks/BlockCauldron.h b/src/Blocks/BlockCauldron.h index da7c43860..263f539a7 100644 --- a/src/Blocks/BlockCauldron.h +++ b/src/Blocks/BlockCauldron.h @@ -54,6 +54,7 @@ public: if (!a_Player.IsGameModeCreative()) { a_Player.ReplaceOneEquippedItemTossRest(cItem(E_ITEM_WATER_BUCKET)); + a_Player.GetStatManager().AddValue(Statistic::UseCauldron); } } break; @@ -68,6 +69,7 @@ public: { a_Player.ReplaceOneEquippedItemTossRest(cItem(E_ITEM_BUCKET)); } + a_Player.GetStatManager().AddValue(Statistic::FillCauldron); } break; } diff --git a/src/Blocks/BlockWorkbench.h b/src/Blocks/BlockWorkbench.h index 19bf551dd..329a1ddeb 100644 --- a/src/Blocks/BlockWorkbench.h +++ b/src/Blocks/BlockWorkbench.h @@ -34,6 +34,8 @@ public: const Vector3i a_CursorPos ) override { + a_Player.GetStatManager().AddValue(Statistic::InteractWithCraftingTable); + cWindow * Window = new cCraftingWindow(); a_Player.OpenWindow(*Window); return true; |