PaperMC/paper-server/patches/sources/net/minecraft/advancements/AdvancementHolder.java.patch
2024-12-13 11:39:43 -05:00

13 lines
412 B
Diff

--- a/net/minecraft/advancements/AdvancementHolder.java
+++ b/net/minecraft/advancements/AdvancementHolder.java
@@ -26,4 +_,10 @@
public String toString() {
return this.id.toString();
}
+
+ // CraftBukkit start
+ public final org.bukkit.advancement.Advancement toBukkit() {
+ return new org.bukkit.craftbukkit.advancement.CraftAdvancement(this);
+ }
+ // CraftBukkit end
}