diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/advancements/AdvancementHolder.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/advancements/AdvancementHolder.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/advancements/AdvancementHolder.patch b/patch-remap/og/net/minecraft/advancements/AdvancementHolder.patch new file mode 100644 index 0000000000..211bb9e586 --- /dev/null +++ b/patch-remap/og/net/minecraft/advancements/AdvancementHolder.patch @@ -0,0 +1,25 @@ +--- a/net/minecraft/advancements/AdvancementHolder.java ++++ b/net/minecraft/advancements/AdvancementHolder.java +@@ -3,6 +3,11 @@ + import net.minecraft.network.PacketDataSerializer; + import net.minecraft.resources.MinecraftKey; + ++// CraftBukkit start ++import org.bukkit.craftbukkit.advancement.CraftAdvancement; ++import org.bukkit.craftbukkit.util.CraftNamespacedKey; ++// CraftBukkit end ++ + public record AdvancementHolder(MinecraftKey id, Advancement value) { + + public void write(PacketDataSerializer packetdataserializer) { +@@ -41,4 +46,10 @@ + public String toString() { + return this.id.toString(); + } ++ ++ // CraftBukkit start ++ public final org.bukkit.advancement.Advancement toBukkit() { ++ return new CraftAdvancement(this); ++ } ++ // CraftBukkit end + } |