9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 03:29:06 +00:00
This commit is contained in:
cyberpwn
2021-08-26 06:12:32 -04:00
parent 3b61b87501
commit 44d75d9955
17 changed files with 117 additions and 182 deletions

View File

@@ -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;

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -42,8 +42,7 @@ public class BurstExecutor {
@SuppressWarnings("UnusedReturnValue")
public Future<?> queue(Runnable r) {
if(!multicore)
{
if (!multicore) {
r.run();
return CompletableFuture.completedFuture(null);
}

View File

@@ -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);
}
}