mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-20 03:59:34 +00:00
reformat project according to .editorconfig
Signed-off-by: Glease <[email protected]>
This commit is contained in:
36 files changed
+2507
-2467
No files matched your search
@@ -43,10 +43,10 @@ public class XSTR extends Random {
|
||||
private static final double DOUBLE_UNIT = 0x1.0p-53; // 1.0 / (1L << 53)
|
||||
private static final float FLOAT_UNIT = 0x1.0p-24f; // 1.0f / (1 << 24)
|
||||
private static final AtomicLong seedUniquifier = new AtomicLong(8682522807148012L);
|
||||
public static final XSTR XSTR_INSTANCE=new XSTR(){
|
||||
public static final XSTR XSTR_INSTANCE = new XSTR() {
|
||||
@Override
|
||||
public synchronized void setSeed(long seed) {
|
||||
if(!Thread.currentThread().getStackTrace()[2].getClassName().equals(Random.class.getName())) {
|
||||
if (!Thread.currentThread().getStackTrace()[2].getClassName().equals(Random.class.getName())) {
|
||||
throw new NoSuchMethodError("This is meant to be shared!, leave seed state alone!");
|
||||
}
|
||||
}
|
||||
@@ -275,4 +275,4 @@ public class XSTR extends Random {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user