From e1e92d577a1c28077cd48d5c8c5c28e4245220c9 Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Fri, 18 Oct 2024 22:22:04 +0200 Subject: [PATCH] Remove temporary log messages --- .../actuallyadditions/mod/event/CommonEvents.java | 3 +-- .../actuallyadditions/mod/network/PacketHandler.java | 9 --------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/event/CommonEvents.java b/src/main/java/de/ellpeck/actuallyadditions/mod/event/CommonEvents.java index b85688d6e..4e8ec344a 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/event/CommonEvents.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/event/CommonEvents.java @@ -184,9 +184,8 @@ public class CommonEvents { @SubscribeEvent public void onLogInEvent(PlayerEvent.PlayerLoggedInEvent event) { if (!event.getEntity().level().isClientSide && event.getEntity() instanceof ServerPlayer player) { - ActuallyAdditions.LOGGER.info("Player " + player.getName() + " with UUID " + player.getUUID() + " logged in."); PacketHelperServer.syncPlayerData(player, true); - ActuallyAdditions.LOGGER.info("Sending Player Data to player " + player.getName() + " with UUID " + player.getUUID() + "."); + ActuallyAdditions.LOGGER.info("Sending Player Data to player {} with UUID {}.", player.getName(), player.getUUID()); } } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java index 2cfd89167..0a265a2bd 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/network/PacketHandler.java @@ -42,7 +42,6 @@ public final class PacketHandler { public static final IDataHandler LASER_HANDLER = new IDataHandler() { @Override public void handleData(CompoundTag compound, IPayloadContext context) { - ActuallyAdditions.LOGGER.info("Received laser update"); if(context.flow() == PacketFlow.CLIENTBOUND) { PacketHelperClient.handleLaser(compound, context); } @@ -51,7 +50,6 @@ public final class PacketHandler { public static final IDataHandler TILE_ENTITY_HANDLER = new IDataHandler() { @Override public void handleData(CompoundTag compound, IPayloadContext context) { - ActuallyAdditions.LOGGER.info("Received tile entity update"); if(context.flow() == PacketFlow.CLIENTBOUND) { PacketHelperClient.handleTileUpdate(compound, context); } @@ -60,7 +58,6 @@ public final class PacketHandler { public static final IDataHandler LASER_PARTICLE_HANDLER = new IDataHandler() { @Override public void handleData(CompoundTag compound, IPayloadContext context) { - ActuallyAdditions.LOGGER.info("Received laser particle update"); if(context.flow() == PacketFlow.CLIENTBOUND) { PacketHelperClient.handleLaserParticle(compound, context); } @@ -68,7 +65,6 @@ public final class PacketHandler { }; public static final IDataHandler GUI_BUTTON_TO_TILE_HANDLER = (compound, context) -> { if (context.player() != null) { - ActuallyAdditions.LOGGER.info("Received button press"); Player player = context.player(); Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID")))); BlockEntity tile = level.getBlockEntity(new BlockPos(compound.getInt("X"), compound.getInt("Y"), compound.getInt("Z"))); @@ -83,7 +79,6 @@ public final class PacketHandler { }; public static final IDataHandler GUI_BUTTON_TO_CONTAINER_HANDLER = (compound, context) -> { if (context.player() != null) { - ActuallyAdditions.LOGGER.info("Received button press"); Player player = context.player(); Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID")))); Entity entity = level.getEntity(compound.getInt("PlayerID")); @@ -97,7 +92,6 @@ public final class PacketHandler { }; public static final IDataHandler GUI_NUMBER_TO_TILE_HANDLER = (compound, context) -> { if (context.player() != null) { - ActuallyAdditions.LOGGER.info("Received number update"); Player player = context.player(); Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID")))); BlockEntity tile = level.getBlockEntity(new BlockPos(compound.getInt("X"), compound.getInt("Y"), compound.getInt("Z"))); @@ -109,7 +103,6 @@ public final class PacketHandler { }; public static final IDataHandler GUI_STRING_TO_TILE_HANDLER = (compound, context) -> { if (context.player() != null) { - ActuallyAdditions.LOGGER.info("Received string update"); Player player = context.player(); Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID")))); BlockEntity tile = level.getBlockEntity(new BlockPos(compound.getInt("X"), compound.getInt("Y"), compound.getInt("Z"))); @@ -122,7 +115,6 @@ public final class PacketHandler { public static final IDataHandler SYNC_PLAYER_DATA = new IDataHandler() { @Override public void handleData(CompoundTag compound, IPayloadContext context) { - ActuallyAdditions.LOGGER.info("Received player data"); if(context.flow() == PacketFlow.CLIENTBOUND) { PacketHelperClient.handlePlayerUpdate(compound, context); } @@ -130,7 +122,6 @@ public final class PacketHandler { }; public static final IDataHandler PLAYER_DATA_TO_SERVER = (compound, context) -> { if (context.player() != null) { - ActuallyAdditions.LOGGER.info("Received player data Server"); Level level = context.player().getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("World")))); Player player = level.getServer().getPlayerList().getPlayer(compound.getUUID("UUID")); if (player != null) {