1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Make MapEditEvent more complete

SetBlocksNotSent is no longer used.
This commit is contained in:
Jude Melton-Houghton 2022-10-08 10:25:22 -04:00
parent 62ee02b8ba
commit 7701e70dc9
7 changed files with 26 additions and 31 deletions

View file

@ -66,7 +66,7 @@ void NodeMetaRef::reportMetadataChange(const std::string *name)
MapEditEvent event;
event.type = MEET_BLOCK_NODE_METADATA_CHANGED;
event.p = m_p;
event.setPositionModified(m_p);
event.is_private_change = name && meta && meta->isPrivate(*name);
m_env->getMap().dispatchEvent(event);
}