-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,581 changed files
with
18,541 additions
and
19,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/net/minecraft/CrashReport.java | ||
+++ b/net/minecraft/CrashReport.java | ||
@@ -36,6 +36,7 @@ | ||
public CrashReport(String s, Throwable throwable) { | ||
this.title = s; | ||
this.exception = throwable; | ||
+ this.systemReport.setDetail("CraftBukkit Information", new org.bukkit.craftbukkit.CraftCrashReport()); // CraftBukkit | ||
} | ||
|
||
public String getTitle() { |
25 changes: 25 additions & 0 deletions
25
nms-patches/net/minecraft/advancements/AdvancementHolder.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- a/net/minecraft/advancements/AdvancementHolder.java | ||
+++ b/net/minecraft/advancements/AdvancementHolder.java | ||
@@ -6,6 +6,11 @@ | ||
import net.minecraft.network.codec.StreamCodec; | ||
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 static final StreamCodec<RegistryFriendlyByteBuf, AdvancementHolder> STREAM_CODEC = StreamCodec.composite(MinecraftKey.STREAM_CODEC, AdvancementHolder::id, Advancement.STREAM_CODEC, AdvancementHolder::value, AdvancementHolder::new); | ||
@@ -38,4 +43,10 @@ | ||
public String toString() { | ||
return this.id.toString(); | ||
} | ||
+ | ||
+ // CraftBukkit start | ||
+ public final org.bukkit.advancement.Advancement toBukkit() { | ||
+ return new CraftAdvancement(this); | ||
+ } | ||
+ // CraftBukkit end | ||
} |
11 changes: 11 additions & 0 deletions
11
nms-patches/net/minecraft/advancements/AdvancementTree.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/advancements/AdvancementTree.java | ||
+++ b/net/minecraft/advancements/AdvancementTree.java | ||
@@ -77,7 +77,7 @@ | ||
} | ||
} | ||
|
||
- AdvancementTree.LOGGER.info("Loaded {} advancements", this.nodes.size()); | ||
+ // AdvancementTree.LOGGER.info("Loaded {} advancements", this.nodes.size()); // CraftBukkit - moved to AdvancementDataWorld#reload | ||
} | ||
|
||
private boolean tryInsert(AdvancementHolder advancementholder) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.