walkor 12 anos atrás
pai
commit
231223da51
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Workers/GameWorker.php

+ 1 - 1
Workers/GameWorker.php

@@ -33,7 +33,7 @@ class GameWorker extends WORKERMAN\Core\SocketWorker
         {
             if($class == 'System')
             {
-                switch($method)
+                switch($this->data['sub_cmd'])
                 {
                     case GameBuffer::SCMD_ON_CONNECT:
                         call_user_func_array(array('Event', 'onConnect'), array($this->currentClientAddress, $this->data['from_uid'], $this->data['body']));