From 3bcbb987e3f89ccffc04bbea72ab11b93821f42e Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 15 Oct 2026 21:17:14 +0300 Subject: [PATCH] breaking: change on_broken block event timing --- src/logic/BlocksController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/BlocksController.cpp b/src/logic/BlocksController.cpp index cf6f5564d..73951ff4b 100644 --- a/src/logic/BlocksController.cpp +++ b/src/logic/BlocksController.cpp @@ -69,11 +69,11 @@ void BlocksController::breakBlock( onBlockInteraction( player, glm::ivec3(x, y, z), def, BlockInteraction::destruction ); + scripting::on_block_broken(player, def, glm::ivec3(x, y, z)); blocks_agent::set(chunks, x, y, z, 0, {}); if (lighting) { lighting->onBlockSet(x, y, z, 0); } - scripting::on_block_broken(player, def, glm::ivec3(x, y, z)); if (def.rt.extended) { updateSides(x, y, z , def.size.x, def.size.y, def.size.z); } else {