Skip to content

Commit d67cc29

Browse files
authored
🐛 Fix creaking hitbox and improve tests to use packtest beta versions (#294)
1 parent af118d9 commit d67cc29

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

datapacks/Bookshelf/data/bs.hitbox/tags/entity_type/size/group_64.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
"minecraft:villager",
1010
"minecraft:armadillo",
1111
"minecraft:creaking",
12-
"minecraft:creaking_transient"
12+
{
13+
"id": "minecraft:creaking_transient",
14+
"required": false
15+
}
1316
]
1417
}

datapacks/Bookshelf/data/bs.hitbox/tags/entity_type/size/group_8.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"minecraft:warden",
3434
"minecraft:wither",
3535
"minecraft:creaking",
36-
"minecraft:creaking_transient"
36+
{
37+
"id": "minecraft:creaking_transient",
38+
"required": false
39+
}
3740
]
3841
}

docs/CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
---
44

5+
## 📦 Bookshelf - 2.2.2
6+
7+
### 🐛 Fixes
8+
9+
- **[#293](https://github.com/Gunivers/Bookshelf/issues/293)** Entity `creaking_transient` was removed from Minecraft 1.21.4, causing `bs.hitbox` to stop working for entities.
10+
11+
---
12+
513
## 📦 Bookshelf - 2.2.1
614

715
Bookshelf is now based on **Minecraft 1.21.4**.
@@ -10,6 +18,8 @@ Bookshelf is now based on **Minecraft 1.21.4**.
1018
- **[#288](https://github.com/Gunivers/Bookshelf/issues/288)** Fix `bs.move` collisions.
1119
- **[#290](https://github.com/Gunivers/Bookshelf/issues/290)** Add missing blocks in `bs.block` registries.
1220

21+
---
22+
1323
## 📦 Bookshelf - 2.2.0
1424

1525
```{epigraph}

scripts/src/packtest/assets.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def get_modrinth_url(project_id: str, mc_version: str) -> str:
4141
response = requests.get(f"https://api.modrinth.com/v2/project/{project_id}/version")
4242
response.raise_for_status()
4343
versions = response.json()
44-
if versions := [version for version in versions if mc_version in version["game_versions"]]:
44+
if versions := [
45+
version
46+
for version in versions
47+
if any(v.startswith(mc_version) for v in version["game_versions"])
48+
]:
4549
return versions[0]["files"][0]["url"]
4650
raise RuntimeError(f"Could not find a version for {project_id} that matches the MC version: {mc_version}")

0 commit comments

Comments
 (0)