removed unnecessary logging
This commit is contained in:
@@ -25,7 +25,6 @@ public class SetRoomOwnerCommand extends PrivilegedCommand {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.addSyntax((sender, context) -> {
|
this.addSyntax((sender, context) -> {
|
||||||
System.out.println("Test");
|
|
||||||
if(sender instanceof Player p) {
|
if(sender instanceof Player p) {
|
||||||
Player newOwner = MinecraftServer.getConnectionManager().getOnlinePlayerByUsername(context.getRaw("player"));
|
Player newOwner = MinecraftServer.getConnectionManager().getOnlinePlayerByUsername(context.getRaw("player"));
|
||||||
Room.getRoom(p).orElseThrow().setOwner(Objects.requireNonNull(newOwner));
|
Room.getRoom(p).orElseThrow().setOwner(Objects.requireNonNull(newOwner));
|
||||||
|
@@ -33,7 +33,6 @@ public class GameConfigurationInventory extends InteractableInventory {
|
|||||||
|
|
||||||
public GameConfigurationInventory(Room room, Player p, GameFactory factory) {
|
public GameConfigurationInventory(Room room, Player p, GameFactory factory) {
|
||||||
super(InventoryType.CHEST_5_ROW, factory.name().getAssembled(p));
|
super(InventoryType.CHEST_5_ROW, factory.name().getAssembled(p));
|
||||||
System.out.println("GameConfigurationInventory");
|
|
||||||
this.room = room;
|
this.room = room;
|
||||||
this.p = p;
|
this.p = p;
|
||||||
this.factory = factory;
|
this.factory = factory;
|
||||||
@@ -53,10 +52,7 @@ public class GameConfigurationInventory extends InteractableInventory {
|
|||||||
)
|
)
|
||||||
.build(),
|
.build(),
|
||||||
0,
|
0,
|
||||||
itemClick -> {
|
itemClick -> itemClick.player().closeInventory(),
|
||||||
System.out.println("Booot callback ist da!");
|
|
||||||
itemClick.player().closeInventory();
|
|
||||||
},
|
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -35,7 +35,6 @@ class Deathcube extends StatelessGame {
|
|||||||
.add(CombatFeatures.VANILLA_KNOCKBACK)
|
.add(CombatFeatures.VANILLA_KNOCKBACK)
|
||||||
.build().createNode()
|
.build().createNode()
|
||||||
);
|
);
|
||||||
System.out.println(radius);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -39,15 +39,9 @@ public class BatchUtil {
|
|||||||
long[] affectedChunks = BatchUtil.getAffectedChunks(batch);
|
long[] affectedChunks = BatchUtil.getAffectedChunks(batch);
|
||||||
CompletableFuture<Void> loadChunksTask = ChunkUtils.optionalLoadAll(instance, affectedChunks, null);
|
CompletableFuture<Void> loadChunksTask = ChunkUtils.optionalLoadAll(instance, affectedChunks, null);
|
||||||
|
|
||||||
Runnable completerTask = () -> {
|
Runnable completerTask = () -> future.complete(null);
|
||||||
System.out.println("COMPLETE");
|
|
||||||
future.complete(null);
|
|
||||||
};
|
|
||||||
|
|
||||||
loadChunksTask.thenRun(() -> {
|
loadChunksTask.thenRun(() -> batch.apply(instance, completerTask));
|
||||||
System.out.println("BEGIN");
|
|
||||||
batch.apply(instance, completerTask);
|
|
||||||
});
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
future.get();
|
future.get();
|
||||||
|
@@ -19,7 +19,6 @@ public class WeatherUtils {
|
|||||||
MinecraftServer.getSchedulerManager().submitTask(() -> {
|
MinecraftServer.getSchedulerManager().submitTask(() -> {
|
||||||
this.intensity += 0.1f;
|
this.intensity += 0.1f;
|
||||||
players.forEach(p -> p.sendPacket(new ChangeGameStatePacket(ChangeGameStatePacket.Reason.RAIN_LEVEL_CHANGE, this.intensity)));
|
players.forEach(p -> p.sendPacket(new ChangeGameStatePacket(ChangeGameStatePacket.Reason.RAIN_LEVEL_CHANGE, this.intensity)));
|
||||||
System.out.println(this.intensity);
|
|
||||||
if(this.intensity < 1) {
|
if(this.intensity < 1) {
|
||||||
return TaskSchedule.millis(500);
|
return TaskSchedule.millis(500);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -38,8 +38,6 @@ public class CircularPlateGenerator extends HeightTerrainGenerator {
|
|||||||
@Override
|
@Override
|
||||||
public void generate(@NotNull GenerationUnit unit) {
|
public void generate(@NotNull GenerationUnit unit) {
|
||||||
this.execution.singleRun(() -> unit.fork(setter -> {
|
this.execution.singleRun(() -> unit.fork(setter -> {
|
||||||
System.out.println(new Pos(-(this.radius + this.centerX), unit.absoluteStart().y(), -(this.radius + this.centerZ)));
|
|
||||||
System.out.println(new Pos(this.radius + this.centerX, this.height, this.radius + this.centerZ));
|
|
||||||
GeneratorUtils.foreachXZ(
|
GeneratorUtils.foreachXZ(
|
||||||
new Pos(-(this.radius + this.centerX), unit.absoluteStart().y(), -(this.radius + this.centerZ)),
|
new Pos(-(this.radius + this.centerX), unit.absoluteStart().y(), -(this.radius + this.centerZ)),
|
||||||
new Pos(this.radius + this.centerX, this.height, this.radius + this.centerZ),
|
new Pos(this.radius + this.centerX, this.height, this.radius + this.centerZ),
|
||||||
|
@@ -46,7 +46,6 @@ public class HeightTerrainGenerator extends BaseGenerator {
|
|||||||
double heightNoise = this.base.getNoise(bottomPoint.x(), bottomPoint.z());
|
double heightNoise = this.base.getNoise(bottomPoint.x(), bottomPoint.z());
|
||||||
double noiseModifier = heightNoise * this.heightNoiseMultiplier.apply(bottomPoint);
|
double noiseModifier = heightNoise * this.heightNoiseMultiplier.apply(bottomPoint);
|
||||||
double heightModifier = NumberUtil.clamp(this.calculateHeight.apply(bottomPoint) + noiseModifier, 1d, unit.size().y());
|
double heightModifier = NumberUtil.clamp(this.calculateHeight.apply(bottomPoint) + noiseModifier, 1d, unit.size().y());
|
||||||
if(heightModifier < 1) System.out.println("HEIGHT MODIFIER ILLEGAL");
|
|
||||||
|
|
||||||
synchronized(this.batches) {
|
synchronized(this.batches) {
|
||||||
double batchNoise = this.batches.getNoise(bottomPoint.x(), bottomPoint.z());
|
double batchNoise = this.batches.getNoise(bottomPoint.x(), bottomPoint.z());
|
||||||
@@ -69,8 +68,6 @@ public class HeightTerrainGenerator extends BaseGenerator {
|
|||||||
Point absoluteHeight = bottomPoint.add(0, heightModifier, 0);
|
Point absoluteHeight = bottomPoint.add(0, heightModifier, 0);
|
||||||
int seaLevel = this.calculateSeaLevel.apply(bottomPoint);
|
int seaLevel = this.calculateSeaLevel.apply(bottomPoint);
|
||||||
if(absoluteHeight.y() < seaLevel) {
|
if(absoluteHeight.y() < seaLevel) {
|
||||||
// System.out.println("HM:" + absoluteHeight.y() + " SL:" + seaLevel);
|
|
||||||
// System.out.println("Filling from " + bottomPoint.y() + " to " + absoluteHeight.withY(seaLevel).y());
|
|
||||||
unit.modifier().fill(bottomPoint.withY(v -> v + heightModifier), absoluteHeight.add(1, 0, 1).withY(seaLevel), Block.WATER);
|
unit.modifier().fill(bottomPoint.withY(v -> v + heightModifier), absoluteHeight.add(1, 0, 1).withY(seaLevel), Block.WATER);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user