Skip to content

Commit

Permalink
Fix using the packet name instead of a meta object in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Heath123 committed Aug 3, 2020
1 parent 066b88d commit c1e31f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/proxy/java/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ exports.writeToClient = function (meta, data, noCallback) {
}

exports.writeToServer = function (meta, data, noCallback) {
if (typeof meta === 'string') {
meta = { name: meta }
}
realServer.write(meta.name, data)
const id = Object.keys(toServerMappings).find(key => toServerMappings[key] === meta.name)
if (!noCallback) {
Expand Down

0 comments on commit c1e31f2

Please sign in to comment.