Skip to content

Commit 8d35ff5

Browse files
committed
fix: [ci skip] add asm-tree for Spigot
1 parent 157271f commit 8d35ff5

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

changelog/2.2.0.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ public static final TrackerAnimation<EntityTracker> DEATH = TrackerAnimation.bui
1212
.build();
1313
```
1414

15+
## 🔧 Fixes
16+
- Molang support in Spigot platform
17+
1518
## 🚀 Changes
1619
- config `pack.use-obfuscation` is now true by default
1720

core/bukkit-core/src/main/java/kr/toxicity/model/bukkit/BetterModelLibrary.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ public final class BetterModelLibrary {
109109
)
110110
.predicate(BooleanConstantSupplier.of(!BetterModelBukkit.IS_PAPER))
111111
);
112+
public static final LibraryData ASM_TREE = register(
113+
"org{}ow2{}asm",
114+
"asm-tree",
115+
builder -> builder.predicate(BooleanConstantSupplier.of(!BetterModelBukkit.IS_PAPER))
116+
);
112117

113118
public void load(@NotNull AbstractBetterModelPlugin plugin) {
114119
var manager = new BetterModelLibraryManager(plugin);

gradle/libs.versions.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ adventure-option = "net.kyori:option:1.1.0"
2828
adventure-platform-bukkit = "net.kyori:adventure-platform-bukkit:4.4.1"
2929
adventure-platform-fabric = "net.kyori:adventure-platform-fabric:6.8.0"
3030

31+
asm-tree = "org.ow2.asm:asm-tree:9.9.1"
32+
3133
fabric-loader = "net.fabricmc:fabric-loader:0.18.4"
3234
fabric-language-kotlin = { module = "net.fabricmc:fabric-language-kotlin", version.ref = "fabric-language-kotlin" }
3335

@@ -105,7 +107,8 @@ manifestLibrary = [
105107
"adventure-api",
106108
"adventure-examination",
107109
"adventure-option",
108-
"adventure-platform-bukkit"
110+
"adventure-platform-bukkit",
111+
"asm-tree"
109112
]
110113

111114
shadedLibrary = [

0 commit comments

Comments
 (0)