From 6bdd130aab51b630918ed664c4389cf33bcb2e06 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Wed, 29 Jul 2020 19:30:38 +0100 Subject: OnBroken/OnPlaced are for entity actions * Call OnPlaced/OnBroken in PlaceBlock/DigBlock - Remove unused Placing/Breaking handlers * Have the blockhandler's Check handle neighbour updating, instead of QueueTickBlockNeighbors --- src/ClientHandle.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/ClientHandle.cpp') diff --git a/src/ClientHandle.cpp b/src/ClientHandle.cpp index 9dc1274d1..c12e11f45 100644 --- a/src/ClientHandle.cpp +++ b/src/ClientHandle.cpp @@ -1373,7 +1373,6 @@ void cClientHandle::HandleBlockDigFinished(int a_BlockX, int a_BlockY, int a_Blo cChunkInterface ChunkInterface(World->GetChunkMap()); auto blockHandler = BlockHandler(a_OldBlock); Vector3i absPos(a_BlockX, a_BlockY, a_BlockZ); - blockHandler->OnPlayerBreakingBlock(ChunkInterface, *World, *m_Player, absPos); if (m_Player->IsGameModeSurvival()) { World->DropBlockAsPickups(absPos, m_Player, &m_Player->GetEquippedItem()); -- cgit v1.2.3