Fix command issues with studio

This commit is contained in:
Daniel Mills 2021-08-10 10:16:33 -04:00
parent 9d983a7c96
commit a0b4450e5b
3 changed files with 6 additions and 6 deletions

View File

@ -158,6 +158,7 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
if (world.hasRealWorld()) {
try {
engine = IrisToolbelt.access(world.realWorld()).getEngine();
Iris.info("Updated Renderer");
return !engine.isClosed();
} catch (Throwable e) {
@ -188,7 +189,7 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
BiFunction<Double, Double, Integer> colorFunction = (d, dx) -> Color.black.getRGB();
switch (currentType) {
case BIOME, DECORATOR_LOAD, OBJECT_LOAD, LAYER_LOAD -> colorFunction = (x, z) -> engine.getComplex().getTrueBiomeStream().get(x, z).getColor(engine, currentType).getRGB();
case BIOME, DECORATOR_LOAD, OBJECT_LOAD, LAYER_LOAD -> colorFunction = (x, z) -> engine.getComplex().getTrueBiomeStreamNoFeatures().get(x, z).getColor(engine, currentType).getRGB();
case BIOME_LAND -> colorFunction = (x, z) -> engine.getComplex().getLandBiomeStream().get(x, z).getColor(engine, currentType).getRGB();
case BIOME_SEA -> colorFunction = (x, z) -> engine.getComplex().getSeaBiomeStream().get(x, z).getColor(engine, currentType).getRGB();
case REGION -> colorFunction = (x, z) -> engine.getComplex().getRegionStream().get(x, z).getColor(engine.getComplex(), currentType).getRGB();
@ -692,7 +693,7 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
IrisComplex complex = engine.getComplex();
File r = null;
switch (currentType) {
case BIOME, LAYER_LOAD, DECORATOR_LOAD, OBJECT_LOAD, HEIGHT -> r = complex.getTrueBiomeStream().get(getWorldX(hx), getWorldZ(hz)).openInVSCode();
case BIOME, LAYER_LOAD, DECORATOR_LOAD, OBJECT_LOAD, HEIGHT -> r = complex.getTrueBiomeStreamNoFeatures().get(getWorldX(hx), getWorldZ(hz)).openInVSCode();
case BIOME_LAND -> r = complex.getLandBiomeStream().get(getWorldX(hx), getWorldZ(hz)).openInVSCode();
case BIOME_SEA -> r = complex.getSeaBiomeStream().get(getWorldX(hx), getWorldZ(hz)).openInVSCode();
case REGION -> r = complex.getRegionStream().get(getWorldX(hx), getWorldZ(hz)).openInVSCode();

View File

@ -169,13 +169,14 @@ public class IrisProject {
}
});
J.a(() -> IrisToolbelt.createWorld()
J.a(() -> activeProvider = (PlatformChunkGenerator) IrisToolbelt.createWorld()
.seed(1337)
.sender(sender)
.studio(true)
.name("iris/" + UUID.randomUUID())
.dimension(d.getLoadKey())
.create());
.create().getGenerator());
}
public void close() {

View File

@ -230,7 +230,6 @@ public class IrisEngine extends BlockPopulator implements Engine {
}
}
public void printMetrics(CommandSender sender) {
KMap<String, Double> totals = new KMap<>();
KMap<String, Double> weights = new KMap<>();
@ -286,7 +285,6 @@ public class IrisEngine extends BlockPopulator implements Engine {
}
}
@Override
public void close() {
J.car(art);