Skip to content

Commit c43fb6a

Browse files
committed
bump to 1.13.0 (mc 1.20.50+; api 1.17.0-beta)
1 parent 6917600 commit c43fb6a

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

pack/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"name": "Debug Stick",
66
"description": "Java Debug Stick on Minecraft: Bedrock Edition. By §bvytdev§r",
77
"uuid": "21aadfa6-e27c-400c-c596-596021852939",
8-
"version": "1.12.0",
9-
"min_engine_version": [ 1, 21, 40 ]
8+
"version": "1.13.0",
9+
"min_engine_version": [ 1, 21, 50 ]
1010
},
1111

1212
"modules": [
@@ -29,7 +29,7 @@
2929
"dependencies": [
3030
{
3131
"module_name": "@minecraft/server",
32-
"version": "1.16.0-beta"
32+
"version": "1.17.0-beta"
3333
}
3434
],
3535

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "debug-stick",
3-
"version": "1.12.0",
3+
"version": "1.13.0",
44
"description": "Debug stick for minecraft bedrock",
55
"scripts": {
66
"test": "npx tsc",
@@ -24,7 +24,7 @@
2424
},
2525
"homepage": "https://github.com/vytdev/debug-stick#readme",
2626
"dependencies": {
27-
"@minecraft/server": "1.16.0-beta.1.21.44-stable",
27+
"@minecraft/server": "1.17.0-beta.1.21.51-stable",
2828
"typescript": "^5.4.5"
2929
}
3030
}

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ import {
2323
system
2424
} from "@minecraft/server";
2525

26+
import {
27+
BlockStateSuperset
28+
} from "@minecraft/vanilla-data";
29+
2630
/**
2731
* Block state type
2832
*/
@@ -160,7 +164,7 @@ function updateBlockProperty(player: Player, block: Block) {
160164
val = valids[0];
161165

162166
system.run(() => {
163-
block.setPermutation(permutation.withState(prop, val));
167+
block.setPermutation(permutation.withState(prop as keyof BlockStateSuperset, val));
164168
});
165169
}
166170

0 commit comments

Comments
 (0)