9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-26 18:49:06 +00:00

Epic Gens

This commit is contained in:
Daniel Mills
2020-01-04 00:28:19 -05:00
parent ec43d2012e
commit 7934be70ee
23 changed files with 3710 additions and 143 deletions

View File

@@ -19,6 +19,7 @@ import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.util.Vector;
import ninja.bytecode.iris.generator.IrisGenerator;
import ninja.bytecode.iris.generator.biome.IrisBiome;
import ninja.bytecode.shuriken.bench.Profiler;
import ninja.bytecode.shuriken.collections.GMap;
import ninja.bytecode.shuriken.collections.GSet;
@@ -61,6 +62,20 @@ public class Iris extends JavaPlugin implements Listener
{
Bukkit.unloadWorld(i, false);
}
Bukkit.getScheduler().scheduleSyncRepeatingTask(this, () -> {
for(World i : Bukkit.getWorlds())
{
if(i.getGenerator() instanceof IrisGenerator)
{
for(Player j : i.getPlayers())
{
IrisBiome biome = IrisBiome.findByBiome(j.getLocation().getBlock().getBiome());
biome.applyEffects(j);
}
}
}
}, 0, 15);
}
private int getTC()