PaperMC/paper-server/patches/sources/net/minecraft/advancements/AdvancementHolder.java.patch

14 lines
412 B
Diff
Raw Normal View History

2024-12-13 17:38:42 +01:00
--- 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
}