mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
add 'on_block_removed' event
This commit is contained in:
parent
b3e5f2a1c0
commit
f721731ecc
12 changed files with 61 additions and 16 deletions
|
|
@ -19,6 +19,7 @@ static uint8_t get_events_bits(const Block& def) {
|
|||
auto funcsset = def.rt.funcsset;
|
||||
bits |= BlockRegisterEvent::UPDATING_BIT * funcsset.onblocktick;
|
||||
bits |= BlockRegisterEvent::PRESENT_EVENT_BIT * funcsset.onblockpresent;
|
||||
bits |= BlockRegisterEvent::REMOVED_EVENT_BIT * funcsset.onblockremoved;
|
||||
return bits;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue