mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Reloading & Resource copying
This commit is contained in:
parent
1b88e132cc
commit
da55612726
@ -19,6 +19,7 @@ import ninja.bytecode.iris.pack.IrisPack;
|
||||
import ninja.bytecode.iris.util.IrisController;
|
||||
import ninja.bytecode.shuriken.bench.PrecisionStopwatch;
|
||||
import ninja.bytecode.shuriken.collections.GMap;
|
||||
import ninja.bytecode.shuriken.execution.J;
|
||||
import ninja.bytecode.shuriken.execution.TaskExecutor;
|
||||
import ninja.bytecode.shuriken.execution.TaskExecutor.TaskGroup;
|
||||
import ninja.bytecode.shuriken.format.F;
|
||||
@ -58,7 +59,8 @@ public class PackController implements IrisController
|
||||
{
|
||||
try
|
||||
{
|
||||
File temp = new File(System.getProperty("java.io.tmpdir") + "/Iris/");
|
||||
J.a(() -> IO.delete(new File(Iris.instance.getDataFolder(), "pack")));
|
||||
File temp = Iris.instance.getDataFolder();
|
||||
temp.mkdirs();
|
||||
L.i("Iris Cache: " + temp.getAbsolutePath());
|
||||
ZipFile zipFile = new ZipFile(jar);
|
||||
|
@ -284,7 +284,7 @@ public class GenObject
|
||||
|
||||
for(BlockVector i : g.k())
|
||||
{
|
||||
MB mb = rotate(from, to, g.get(i));
|
||||
MB mb = g.get(i);
|
||||
s.put(VectorMath.rotate(from, to, i).toBlockVector(), mb);
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@ import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.generator.BlockPopulator;
|
||||
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import ninja.bytecode.iris.Iris;
|
||||
import ninja.bytecode.iris.controller.PackController;
|
||||
import ninja.bytecode.iris.controller.TimingsController;
|
||||
@ -17,6 +18,7 @@ import ninja.bytecode.iris.generator.IrisGenerator;
|
||||
import ninja.bytecode.iris.pack.IrisBiome;
|
||||
import ninja.bytecode.shuriken.collections.GMap;
|
||||
import ninja.bytecode.shuriken.collections.GSet;
|
||||
import ninja.bytecode.shuriken.logging.L;
|
||||
import ninja.bytecode.shuriken.math.M;
|
||||
|
||||
public class GenObjectDecorator extends BlockPopulator
|
||||
@ -36,10 +38,19 @@ public class GenObjectDecorator extends BlockPopulator
|
||||
GMap<GenObjectGroup, Double> gk = new GMap<>();
|
||||
|
||||
for(String j : i.getSchematicGroups().k())
|
||||
{
|
||||
try
|
||||
{
|
||||
gk.put(Iris.getController(PackController.class).getGenObjectGroups().get(j), i.getSchematicGroups().get(j));
|
||||
}
|
||||
|
||||
catch(Throwable e)
|
||||
{
|
||||
L.f(ChatColor.RED + "Failed to inject " + j + " into GenObjectDecorator");
|
||||
L.ex(e);
|
||||
}
|
||||
}
|
||||
|
||||
populationCache.put(i.getRealBiome(), gk);
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
"LONG_GRASS:2=0.09"
|
||||
],
|
||||
"objects": [
|
||||
"tree/serrulata/alt/medium=0.33",
|
||||
"tree/serrulata/bleeding/alt/medium=0.33",
|
||||
"tree/serrulata/bleeding/large=0.42",
|
||||
"tree/serrulata/bleeding/medium=0.42",
|
||||
"tree/serrulata/nobleed/medium=0.42",
|
||||
|
Loading…
x
Reference in New Issue
Block a user