mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Fix command issues with studio
This commit is contained in:
parent
9d983a7c96
commit
a0b4450e5b
@ -158,6 +158,7 @@ public class VisionGUI extends JPanel implements MouseWheelListener, KeyListener
|
|||||||
if (world.hasRealWorld()) {
|
if (world.hasRealWorld()) {
|
||||||
try {
|
try {
|
||||||
engine = IrisToolbelt.access(world.realWorld()).getEngine();
|
engine = IrisToolbelt.access(world.realWorld()).getEngine();
|
||||||
|
Iris.info("Updated Renderer");
|
||||||
return !engine.isClosed();
|
return !engine.isClosed();
|
||||||
} catch (Throwable e) {
|
} 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();
|
BiFunction<Double, Double, Integer> colorFunction = (d, dx) -> Color.black.getRGB();
|
||||||
|
|
||||||
switch (currentType) {
|
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_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 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();
|
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();
|
IrisComplex complex = engine.getComplex();
|
||||||
File r = null;
|
File r = null;
|
||||||
switch (currentType) {
|
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_LAND -> r = complex.getLandBiomeStream().get(getWorldX(hx), getWorldZ(hz)).openInVSCode();
|
||||||
case BIOME_SEA -> r = complex.getSeaBiomeStream().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();
|
case REGION -> r = complex.getRegionStream().get(getWorldX(hx), getWorldZ(hz)).openInVSCode();
|
||||||
|
@ -169,13 +169,14 @@ public class IrisProject {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
J.a(() -> IrisToolbelt.createWorld()
|
|
||||||
|
J.a(() -> activeProvider = (PlatformChunkGenerator) IrisToolbelt.createWorld()
|
||||||
.seed(1337)
|
.seed(1337)
|
||||||
.sender(sender)
|
.sender(sender)
|
||||||
.studio(true)
|
.studio(true)
|
||||||
.name("iris/" + UUID.randomUUID())
|
.name("iris/" + UUID.randomUUID())
|
||||||
.dimension(d.getLoadKey())
|
.dimension(d.getLoadKey())
|
||||||
.create());
|
.create().getGenerator());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void close() {
|
public void close() {
|
||||||
|
@ -230,7 +230,6 @@ public class IrisEngine extends BlockPopulator implements Engine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void printMetrics(CommandSender sender) {
|
public void printMetrics(CommandSender sender) {
|
||||||
KMap<String, Double> totals = new KMap<>();
|
KMap<String, Double> totals = new KMap<>();
|
||||||
KMap<String, Double> weights = new KMap<>();
|
KMap<String, Double> weights = new KMap<>();
|
||||||
@ -286,7 +285,6 @@ public class IrisEngine extends BlockPopulator implements Engine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() {
|
public void close() {
|
||||||
J.car(art);
|
J.car(art);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user