re-emit mcpe packets as client event
This commit is contained in:
parent
083079d619
commit
d17c62307a
3 changed files with 6 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ function createClient(options) {
|
|||
|
||||
var client=raknet.createClient(options);
|
||||
client.username = options.username;
|
||||
client.on("mcpe",packet => client.emit(packet.name,packet.params))
|
||||
|
||||
return client;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue