This commit is contained in:
RePixelatedMC
2024-08-03 15:25:23 +02:00
parent b429448885
commit ad8ff2643b
@@ -46,8 +46,10 @@ public class CommandPregen implements DecreeExecutor {
World world, World world,
@Param(aliases = "middle", description = "The center location of the pregen. Use \"me\" for your current location", defaultValue = "0,0") @Param(aliases = "middle", description = "The center location of the pregen. Use \"me\" for your current location", defaultValue = "0,0")
Vector center, Vector center,
@Param(aliases = "optimizer", description = "If it should run the optimizer automatically after the pregen is finished", defaultValue = "true") @Param(aliases = "optimizer", description = "If it should run the optimizer automatically after the pregen is finished", defaultValue = "false")
boolean optimizer boolean optimizer,
@Param(aliases = "gui", description = "Enable or disable the Iris GUI.", defaultValue = "true")
boolean gui
) { ) {
try { try {
if (sender().isPlayer() && access() == null) { if (sender().isPlayer() && access() == null) {
@@ -60,7 +62,7 @@ public class CommandPregen implements DecreeExecutor {
.builder() .builder()
.optimizer(optimizer) .optimizer(optimizer)
.center(new Position2(center.getBlockX() >> 9, center.getBlockZ() >> 9)) .center(new Position2(center.getBlockX() >> 9, center.getBlockZ() >> 9))
.gui(!GraphicsEnvironment.isHeadless()) .gui(!GraphicsEnvironment.isHeadless() && gui)
.width(w) .width(w)
.height(w) .height(w)
.build(), world); .build(), world);