mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-20 09:29:44 +00:00
breaking: change on_broken block event timing
This commit is contained in:
parent
4354896008
commit
3bcbb987e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue