Skip to content

Commit b82613e

Browse files
rom1504botgithub-actions[bot]extremeheat
authored
Release 3.1.0 (#25)
* Release 3.1.0 * fix ts build --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: extremeheat <[email protected]>
1 parent 697c6fd commit b82613e

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

HISTORY.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.1.0
2+
* [Create commands.yml workflow](https://github.com/PrismarineJS/bedrock-provider/commit/697c6fd799e2cdaf5ad4e5dd32ab1793fdfe7b59) (thanks @extremeheat)
3+
* [Support 1.18.10, 1.18.30 and 1.19.1 (#22)](https://github.com/PrismarineJS/bedrock-provider/commit/f4cab76906216dae1caf1a765d7e882874114aa9) (thanks @extremeheat)
4+
15
## 3.0.0
26
* Remove old chunk implementation (#18) @extremeheat
37
* Use prismarine-chunk chunk implementation

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bedrock-provider",
3-
"version": "3.0.0",
3+
"version": "3.1.0",
44
"description": "Minecraft Bedrock edition chunk provider",
55
"main": "./js/index.js",
66
"scripts": {

test/load.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,19 @@ for (const version of versions) {
3535
const port = await getPort()
3636
const portV6 = await getPort()
3737
console.log('Server ran on port', port)
38-
const handle = await bedrockServer.startServerAndWait(version, 90000, { path: join(__dirname, './bds-' + version), 'server-port': port, 'server-portv6': portV6 })
38+
// @ts-ignore
39+
const handle = await bedrockServer.startServerAndWait(version, 90000, {
40+
path: join(__dirname, './bds-' + version),
41+
'server-port': port,
42+
'server-portv6': portV6
43+
})
3944

4045
async function connect(cachingEnabled) {
4146
const client = bp.createClient({
4247
host: 'localhost',
4348
port: port,
44-
version,
4549
// @ts-ignore
50+
version,
4651
username: 'Bot' + Math.floor(Math.random() * 1000),
4752
skipPing: true,
4853
offline: true

test/makeFlatWorld.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ describe('make flat world', function () {
1515
for (const version of versions) {
1616
const registry = Registry('bedrock_' + version)
1717
const worldPath = join(__dirname, '/flat-world-' + version)
18+
// @ts-ignore
1819
const World = PrismarineWorld(registry)
1920

2021
it('works on ' + version, async () => {
@@ -35,7 +36,7 @@ describe('make flat world', function () {
3536
for (var z = 0; z < 4; z++) {
3637
// Set a random block ID
3738
const id = Math.floor(Math.random() * 1000)
38-
const block = Block.fromStateId(id)
39+
const block = Block.fromStateId(id, 0)
3940
cc.setBlock({ l, x, y, z }, block)
4041
const gotblock = cc.getBlock({ l, x, y, z })
4142
assert.strictEqual(gotblock.stateId, id)
@@ -47,6 +48,7 @@ describe('make flat world', function () {
4748
world.setLoadedColumn(0, 0, cc)
4849
world.queueSaving(0, 0)
4950
await world.saveNow() // Why does this not return proper Promise?
51+
// @ts-ignore
5052
await world.finishedSaving
5153
console.log('OK')
5254
await db.close()

0 commit comments

Comments
 (0)