Closed jpenilla closed 1 month ago
The following is a diff from VF 1.11-SNAPSHOT to 1.10.1 output:
diff --git a/net/minecraft/world/level/levelgen/BitRandomSource.java b/net/minecraft/world/level/levelgen/BitRandomSource.java --- a/net/minecraft/world/level/levelgen/BitRandomSource.java (revision 945cfbb91d450971c7076db24b5a76a4ea97cd0c) +++ b/net/minecraft/world/level/levelgen/BitRandomSource.java (date 1714775725817) @@ -18,7 +18,7 @@ if (bound <= 0) { throw new IllegalArgumentException("Bound must be positive"); } else if ((bound & bound - 1) == 0) { - return (int)(bound * this.next(31) >> 31); + return (int)((long)bound * (long)this.next(31) >> 31); } else { int i; int i1;
the no-longer-emitted casts to long are actually not redundant, removing them causes an error when starting Minecraft (but compiles fine).
dupe #388
The following is a diff from VF 1.11-SNAPSHOT to 1.10.1 output:
the no-longer-emitted casts to long are actually not redundant, removing them causes an error when starting Minecraft (but compiles fine).