removed unnecessary logging

This commit is contained in:
2025-10-16 23:14:04 +02:00
parent cfdf469c39
commit 8756cf2f17
7 changed files with 3 additions and 21 deletions

View File

@@ -25,7 +25,6 @@ public class SetRoomOwnerCommand extends PrivilegedCommand {
});
this.addSyntax((sender, context) -> {
System.out.println("Test");
if(sender instanceof Player p) {
Player newOwner = MinecraftServer.getConnectionManager().getOnlinePlayerByUsername(context.getRaw("player"));
Room.getRoom(p).orElseThrow().setOwner(Objects.requireNonNull(newOwner));

View File

@@ -33,7 +33,6 @@ public class GameConfigurationInventory extends InteractableInventory {
public GameConfigurationInventory(Room room, Player p, GameFactory factory) {
super(InventoryType.CHEST_5_ROW, factory.name().getAssembled(p));
System.out.println("GameConfigurationInventory");
this.room = room;
this.p = p;
this.factory = factory;
@@ -53,10 +52,7 @@ public class GameConfigurationInventory extends InteractableInventory {
)
.build(),
0,
itemClick -> {
System.out.println("Booot callback ist da!");
itemClick.player().closeInventory();
},
itemClick -> itemClick.player().closeInventory(),
true
);

View File

@@ -35,7 +35,6 @@ class Deathcube extends StatelessGame {
.add(CombatFeatures.VANILLA_KNOCKBACK)
.build().createNode()
);
System.out.println(radius);
}
@Override

View File

@@ -39,15 +39,9 @@ public class BatchUtil {
long[] affectedChunks = BatchUtil.getAffectedChunks(batch);
CompletableFuture<Void> loadChunksTask = ChunkUtils.optionalLoadAll(instance, affectedChunks, null);
Runnable completerTask = () -> {
System.out.println("COMPLETE");
future.complete(null);
};
Runnable completerTask = () -> future.complete(null);
loadChunksTask.thenRun(() -> {
System.out.println("BEGIN");
batch.apply(instance, completerTask);
});
loadChunksTask.thenRun(() -> batch.apply(instance, completerTask));
try {
future.get();

View File

@@ -19,7 +19,6 @@ public class WeatherUtils {
MinecraftServer.getSchedulerManager().submitTask(() -> {
this.intensity += 0.1f;
players.forEach(p -> p.sendPacket(new ChangeGameStatePacket(ChangeGameStatePacket.Reason.RAIN_LEVEL_CHANGE, this.intensity)));
System.out.println(this.intensity);
if(this.intensity < 1) {
return TaskSchedule.millis(500);
} else {

View File

@@ -38,8 +38,6 @@ public class CircularPlateGenerator extends HeightTerrainGenerator {
@Override
public void generate(@NotNull GenerationUnit unit) {
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(
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),

View File

@@ -46,7 +46,6 @@ public class HeightTerrainGenerator extends BaseGenerator {
double heightNoise = this.base.getNoise(bottomPoint.x(), bottomPoint.z());
double noiseModifier = heightNoise * this.heightNoiseMultiplier.apply(bottomPoint);
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) {
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);
int seaLevel = this.calculateSeaLevel.apply(bottomPoint);
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);
}
}