Reverted experimental algorithms for 2.3.4-DEV1

This commit is contained in:
Fabrizio La Rosa 2020-06-22 17:05:19 +02:00
parent cd15898858
commit c099cab081
3 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.songoda</groupId>
<artifactId>skyblock</artifactId>
<version>2.3.3</version>
<version>2.3.4-DEV1</version>
<packaging>jar</packaging>
<build>
<defaultGoal>clean install</defaultGoal>

View File

@ -110,11 +110,11 @@ public class SkyBlock extends SongodaPlugin {
public void onPluginEnable() {
paper = false;
try {
/*try {
Class.forName("com.destroystokyo.paper.PaperConfig");
paper = true;
Bukkit.getLogger().info("Enabling Paper hooks");
} catch (ClassNotFoundException ignored) {}
} catch (ClassNotFoundException ignored) {}*/
// Run Songoda Updater
SongodaCore.registerPlugin(this, 17, CompatibleMaterial.GRASS_BLOCK);

View File

@ -27,7 +27,7 @@ public class BiomeManager {
Location location = island.getLocation(IslandWorld.Normal, IslandEnvironment.Island);
int radius = (int) Math.ceil(island.getRadius());
/*Bukkit.getScheduler().runTaskAsynchronously(skyblock, () -> {
Bukkit.getScheduler().runTaskAsynchronously(skyblock, () -> {
for (int x = location.getBlockX() - radius; x < location.getBlockX() + radius; x++) {
for (int z = location.getBlockZ() - radius; z < location.getBlockZ() + radius; z++) {
location.getWorld().setBiome(x, z, biome);
@ -41,9 +41,9 @@ public class BiomeManager {
}
}
});
});*/
});
Bukkit.getScheduler().runTaskAsynchronously(skyblock, () -> {
/*Bukkit.getScheduler().runTaskAsynchronously(skyblock, () -> {
long i = 0;
for (int x = location.getBlockX() - radius; x < location.getBlockX() + radius; x += 16) {
for (int z = location.getBlockZ() - radius; z < location.getBlockZ() + radius; z += 16) {
@ -62,7 +62,7 @@ public class BiomeManager {
i++;
}
}
});
});*/
}