bedrock-portal 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bedrock-portal",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Creates a joinable session in Minecraft Bedrock Edition that can route players to their a specified host",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -105,6 +105,10 @@ module.exports = class BedrockPortal extends EventEmitter {
105
105
  system: {
106
106
  active: true,
107
107
  connection: connectionId,
108
+ subscription: {
109
+ id: this.session.subscriptionId,
110
+ changeTypes: ['everything'],
111
+ },
108
112
  },
109
113
  },
110
114
  },
@@ -156,7 +160,7 @@ module.exports = class BedrockPortal extends EventEmitter {
156
160
  joinTime: e.joinTime,
157
161
  index: e.constants.system.index,
158
162
  connectionId: e.properties.system.connection,
159
- subscriptionId: e.properties.system.subscription.id,
163
+ subscriptionId: e.properties.system.subscription?.id,
160
164
  },
161
165
  };
162
166
  });