1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Generate Notifier: Clear events once after all 'on generated' functions

This commit is contained in:
paramat 2018-03-02 13:39:39 +00:00 committed by paramat
parent b952d42000
commit 07622bf9b4
3 changed files with 14 additions and 6 deletions

View file

@ -99,8 +99,8 @@ public:
void setNotifyOnDecoIds(std::set<u32> *notify_on_deco_ids);
bool addEvent(GenNotifyType type, v3s16 pos, u32 id=0);
void getEvents(std::map<std::string, std::vector<v3s16> > &event_map,
bool peek_events=false);
void getEvents(std::map<std::string, std::vector<v3s16> > &event_map);
void clearEvents();
private:
u32 m_notify_on = 0;