added check if callback got subscribed before triggering and creating structures

This commit is contained in:
kremsy
2017-03-25 13:40:37 +01:00
parent 4804e0ab55
commit e8586586a3
3 changed files with 19 additions and 3 deletions

View File

@ -52,6 +52,9 @@ class ShootManiaCallbacks implements CallbackListener {
* @param mixed $data
*/
public function handleScriptCallbacks($name, $data) {
if (!$this->maniaControl->getCallbackManager()->callbackListeningExists($name)) {
return;
}
switch ($name) {
//MP4 New Callbacks
case Callbacks::SM_EVENTDEFAULT: