added check if callback got subscribed before triggering and creating structures
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user