Skip to content

Commit

Permalink
Slime chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Dec 7, 2018
1 parent 2d2537d commit 2ba004f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions patches/net/minecraft/util/SharedSeedRandom.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@
}

public void skip(int bits) {
@@ -61,6 +63,6 @@
}

public static Random seedSlimeChunk(int p_205190_0_, int p_205190_1_, long p_205190_2_, long p_205190_4_) {
- return new Random(p_205190_2_ + (long)(p_205190_0_ * p_205190_0_ * 4987142) + (long)(p_205190_0_ * 5947611) + (long)(p_205190_1_ * p_205190_1_) * 4392871L + (long)(p_205190_1_ * 389711) ^ p_205190_4_);
+ return new BedrockRandom((p_205190_0_ * 522133279) ^ p_205190_1_); // BEDROCK
}
}

0 comments on commit 2ba004f

Please sign in to comment.