mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-28 03:29:06 +00:00
Cleanup
This commit is contained in:
@@ -23,7 +23,7 @@ import org.bukkit.block.Biome;
|
||||
import org.bukkit.generator.ChunkGenerator.BiomeGrid;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class IrisBiomeStorage implements BiomeGrid{
|
||||
public class IrisBiomeStorage implements BiomeGrid {
|
||||
private static final int e;
|
||||
private static final int f;
|
||||
public static final int a;
|
||||
|
||||
@@ -432,8 +432,7 @@ public class Mantle {
|
||||
try {
|
||||
region = TectonicPlate.read(worldHeight, file);
|
||||
|
||||
if(region.getX() != x || region.getZ() != z)
|
||||
{
|
||||
if (region.getX() != x || region.getZ() != z) {
|
||||
Iris.warn("Loaded Tectonic Plate " + x + "," + z + " but read it as " + region.getX() + "," + region.getZ() + "... Assuming " + x + "," + z);
|
||||
}
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ public class TectonicPlate {
|
||||
MantleChunk chunk = get(x, z);
|
||||
|
||||
if (chunk == null) {
|
||||
chunk = new MantleChunk(sectionHeight, x&31, z&31);
|
||||
chunk = new MantleChunk(sectionHeight, x & 31, z & 31);
|
||||
chunks.set(index(x, z), chunk);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,8 +42,7 @@ public class BurstExecutor {
|
||||
|
||||
@SuppressWarnings("UnusedReturnValue")
|
||||
public Future<?> queue(Runnable r) {
|
||||
if(!multicore)
|
||||
{
|
||||
if (!multicore) {
|
||||
r.run();
|
||||
return CompletableFuture.completedFuture(null);
|
||||
}
|
||||
|
||||
@@ -256,13 +256,9 @@ public class J {
|
||||
* @param delay the delay to wait in ticks before running
|
||||
*/
|
||||
public static void s(Runnable r, int delay) {
|
||||
try
|
||||
{
|
||||
try {
|
||||
Bukkit.getScheduler().scheduleSyncDelayedTask(Iris.instance, r, delay);
|
||||
}
|
||||
|
||||
catch(Throwable e)
|
||||
{
|
||||
} catch (Throwable e) {
|
||||
Iris.reportError(e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user