forked from kettingpowered/Ketting-1-20-x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
155 additions
and
98 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
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
--- a/net/minecraft/nbt/ByteArrayTag.java | ||
+++ b/net/minecraft/nbt/ByteArrayTag.java | ||
@@ -21,6 +_,8 @@ | ||
@@ -21,6 +_,7 @@ | ||
private static byte[] readAccounted(DataInput p_301772_, NbtAccounter p_301697_) throws IOException { | ||
p_301697_.accountBytes(24L); | ||
int i = p_301772_.readInt(); | ||
+ com.google.common.base.Preconditions.checkArgument( i < 1 << 24); // Spigot | ||
+ | ||
p_301697_.accountBytes(1L, (long)i); | ||
p_301697_.accountBytes(1L * (long)i); | ||
byte[] abyte = new byte[i]; | ||
p_301772_.readFully(abyte); |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
--- a/net/minecraft/nbt/IntArrayTag.java | ||
+++ b/net/minecraft/nbt/IntArrayTag.java | ||
@@ -21,6 +_,8 @@ | ||
@@ -21,6 +_,7 @@ | ||
private static int[] readAccounted(DataInput p_301738_, NbtAccounter p_301754_) throws IOException { | ||
p_301754_.accountBytes(24L); | ||
int i = p_301738_.readInt(); | ||
+ com.google.common.base.Preconditions.checkArgument( i < 1 << 24); // Spigot | ||
+ | ||
p_301754_.accountBytes(4L, (long)i); | ||
p_301754_.accountBytes(4L * (long)i); | ||
int[] aint = new int[i]; | ||
|
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
21 changes: 13 additions & 8 deletions
21
patches/minecraft/net/minecraft/world/level/block/BeehiveBlock.java.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
Oops, something went wrong.