diff --git a/library/modules/EventManager.cpp b/library/modules/EventManager.cpp index c21ffc933..f4838b192 100644 --- a/library/modules/EventManager.cpp +++ b/library/modules/EventManager.cpp @@ -91,7 +91,10 @@ int32_t DFHack::EventManager::registerTick(EventHandler handler, int32_t when, P handler.when = when; tickQueue.insert(pair(handler.when, handler)); eventLastTick[handler.eventHandler] = -1; - handlers[EventType::TICK].insert(pair(plugin,handler)); + //this commented line ensures "Registered Ticks" are not added back to the queue after execution + //handlers[EventType::TICK].insert(pair(plugin,handler)); + + // since the event isn't added to the handlers, we don't need to unregister these events return when; }