baltica 0.1.30 → 0.1.32

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.
@@ -198,6 +198,8 @@ class Client extends shared_1.Emitter {
198
198
  this.disconnect(packet.message.message ?? undefined);
199
199
  });
200
200
  // Respawn handling
201
+ if (!this.options.autoRespawn)
202
+ return;
201
203
  this.on("ActorEventPacket", async (packet) => {
202
204
  if (packet.actorRuntimeId !== this.startGameData.runtimeEntityId ||
203
205
  packet.event !== protocol_1.ActorEvent.Death)
@@ -64,6 +64,8 @@ export type ClientOptions = {
64
64
  };
65
65
  /** Whether to log the auth messages */
66
66
  authLogs: boolean;
67
+ /** Whether to automatically respawn on death */
68
+ autoRespawn: boolean;
67
69
  };
68
70
  /** Default Client Options */
69
71
  export declare const defaultClientOptions: ClientOptions;
@@ -50,4 +50,6 @@ exports.defaultClientOptions = {
50
50
  debug: false,
51
51
  /** Default Value: true */
52
52
  authLogs: true,
53
+ /** Default Value: true */
54
+ autoRespawn: true,
53
55
  };
@@ -9,7 +9,8 @@ export declare enum ProtocolList {
9
9
  "1.21.100" = 827,
10
10
  "1.21.113" = 844,
11
11
  "1.21.120" = 859,
12
- "1.21.130" = 898
12
+ "1.21.130" = 898,
13
+ "26.0" = 924
13
14
  }
14
15
  export type PacketNames = {
15
16
  [K in keyof typeof Protocol]: K extends `${string}Packet` ? K extends "Packet" | "DataPacket" ? never : K : never;
@@ -17,7 +18,7 @@ export type PacketNames = {
17
18
  /**
18
19
  * We do not have multi protocol as of now (Not yet planned either).
19
20
  */
20
- export type CurrentVersion = "1.21.130";
21
+ export type CurrentVersion = "26.0";
21
22
  export declare const CurrentVersionConst: CurrentVersion;
22
23
  /**
23
24
  * Checks if client version is higher than the specified version
@@ -15,8 +15,9 @@ var ProtocolList;
15
15
  ProtocolList[ProtocolList["1.21.113"] = 844] = "1.21.113";
16
16
  ProtocolList[ProtocolList["1.21.120"] = 859] = "1.21.120";
17
17
  ProtocolList[ProtocolList["1.21.130"] = 898] = "1.21.130";
18
+ ProtocolList[ProtocolList["26.0"] = 924] = "26.0";
18
19
  })(ProtocolList || (exports.ProtocolList = ProtocolList = {}));
19
- exports.CurrentVersionConst = "1.21.130";
20
+ exports.CurrentVersionConst = "26.0";
20
21
  /**
21
22
  * Checks if client version is higher than the specified version
22
23
  * @param version The client version to check
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "baltica",
3
3
  "description": "Library for Minecraft Bedrock Edition community developers.",
4
- "version": "0.1.30",
5
- "minecraft": "1.21.130",
4
+ "version": "0.1.32",
5
+ "minecraft": "26.0",
6
6
  "main": "dist/index.js",
7
7
  "license": "MIT",
8
8
  "types": "dist/index.d.ts",
@@ -21,21 +21,21 @@
21
21
  }
22
22
  ],
23
23
  "dependencies": {
24
- "@sanctumterra/raknet": "^1.4.17",
24
+ "@sanctumterra/raknet": "^1.4.18",
25
25
  "@serenityjs/binarystream": "^3.1.0",
26
- "@serenityjs/protocol": "^0.8.17",
26
+ "@serenityjs/protocol": "^0.8.18",
27
27
  "fetch-socks": "^1.3.2",
28
28
  "jose": "^5.10.0",
29
29
  "prismarine-auth": "^2.7.0",
30
+ "pngjs": "^7.0.0",
30
31
  "undici": "^7.21.0",
31
32
  "uuid-1345": "^1.0.2"
32
33
  },
33
34
  "devDependencies": {
34
35
  "@biomejs/biome": "1.9.4",
35
- "@types/node": "^22.19.10",
36
+ "@types/node": "^22.19.11",
36
37
  "@types/pngjs": "^6.0.5",
37
38
  "@types/uuid-1345": "^0.99.25",
38
- "pngjs": "^7.0.0",
39
39
  "typescript": "^5.9.3"
40
40
  }
41
41
  }