mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-28 11:39:07 +00:00
Cleanup
This commit is contained in:
@@ -625,14 +625,11 @@ public class KList<T> extends ArrayList<T> implements List<T> {
|
||||
return get(M.irand(0, last()));
|
||||
}
|
||||
|
||||
public KList<T> popRandom(RNG rng, int c)
|
||||
{
|
||||
public KList<T> popRandom(RNG rng, int c) {
|
||||
KList<T> m = new KList<>();
|
||||
|
||||
for(int i = 0; i < c; i++)
|
||||
{
|
||||
if(isEmpty())
|
||||
{
|
||||
for (int i = 0; i < c; i++) {
|
||||
if (isEmpty()) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ public class BlockPosition {
|
||||
private int y;
|
||||
private int z;
|
||||
|
||||
|
||||
//Magic numbers
|
||||
private static final int m1 = 1 + MathHelper.f(MathHelper.c(30000000));
|
||||
private static final int m2 = 64 - (m1 * 2);
|
||||
@@ -39,7 +38,6 @@ public class BlockPosition {
|
||||
private static final long m5 = (1L << m2) - 1L;
|
||||
private static final long m6 = (1L << m1) - 1L;
|
||||
|
||||
|
||||
public BlockPosition(int x, int y, int z) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
||||
Reference in New Issue
Block a user