mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-25 08:28:34 +01:00
Remove temporary log messages
This commit is contained in:
parent
4dd12e74fd
commit
e1e92d577a
2 changed files with 1 additions and 11 deletions
|
@ -184,9 +184,8 @@ public class CommonEvents {
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onLogInEvent(PlayerEvent.PlayerLoggedInEvent event) {
|
public void onLogInEvent(PlayerEvent.PlayerLoggedInEvent event) {
|
||||||
if (!event.getEntity().level().isClientSide && event.getEntity() instanceof ServerPlayer player) {
|
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);
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,6 @@ public final class PacketHandler {
|
||||||
public static final IDataHandler LASER_HANDLER = new IDataHandler() {
|
public static final IDataHandler LASER_HANDLER = new IDataHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleData(CompoundTag compound, IPayloadContext context) {
|
public void handleData(CompoundTag compound, IPayloadContext context) {
|
||||||
ActuallyAdditions.LOGGER.info("Received laser update");
|
|
||||||
if(context.flow() == PacketFlow.CLIENTBOUND) {
|
if(context.flow() == PacketFlow.CLIENTBOUND) {
|
||||||
PacketHelperClient.handleLaser(compound, context);
|
PacketHelperClient.handleLaser(compound, context);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +50,6 @@ public final class PacketHandler {
|
||||||
public static final IDataHandler TILE_ENTITY_HANDLER = new IDataHandler() {
|
public static final IDataHandler TILE_ENTITY_HANDLER = new IDataHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleData(CompoundTag compound, IPayloadContext context) {
|
public void handleData(CompoundTag compound, IPayloadContext context) {
|
||||||
ActuallyAdditions.LOGGER.info("Received tile entity update");
|
|
||||||
if(context.flow() == PacketFlow.CLIENTBOUND) {
|
if(context.flow() == PacketFlow.CLIENTBOUND) {
|
||||||
PacketHelperClient.handleTileUpdate(compound, context);
|
PacketHelperClient.handleTileUpdate(compound, context);
|
||||||
}
|
}
|
||||||
|
@ -60,7 +58,6 @@ public final class PacketHandler {
|
||||||
public static final IDataHandler LASER_PARTICLE_HANDLER = new IDataHandler() {
|
public static final IDataHandler LASER_PARTICLE_HANDLER = new IDataHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleData(CompoundTag compound, IPayloadContext context) {
|
public void handleData(CompoundTag compound, IPayloadContext context) {
|
||||||
ActuallyAdditions.LOGGER.info("Received laser particle update");
|
|
||||||
if(context.flow() == PacketFlow.CLIENTBOUND) {
|
if(context.flow() == PacketFlow.CLIENTBOUND) {
|
||||||
PacketHelperClient.handleLaserParticle(compound, context);
|
PacketHelperClient.handleLaserParticle(compound, context);
|
||||||
}
|
}
|
||||||
|
@ -68,7 +65,6 @@ public final class PacketHandler {
|
||||||
};
|
};
|
||||||
public static final IDataHandler GUI_BUTTON_TO_TILE_HANDLER = (compound, context) -> {
|
public static final IDataHandler GUI_BUTTON_TO_TILE_HANDLER = (compound, context) -> {
|
||||||
if (context.player() != null) {
|
if (context.player() != null) {
|
||||||
ActuallyAdditions.LOGGER.info("Received button press");
|
|
||||||
Player player = context.player();
|
Player player = context.player();
|
||||||
Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID"))));
|
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")));
|
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) -> {
|
public static final IDataHandler GUI_BUTTON_TO_CONTAINER_HANDLER = (compound, context) -> {
|
||||||
if (context.player() != null) {
|
if (context.player() != null) {
|
||||||
ActuallyAdditions.LOGGER.info("Received button press");
|
|
||||||
Player player = context.player();
|
Player player = context.player();
|
||||||
Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID"))));
|
Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID"))));
|
||||||
Entity entity = level.getEntity(compound.getInt("PlayerID"));
|
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) -> {
|
public static final IDataHandler GUI_NUMBER_TO_TILE_HANDLER = (compound, context) -> {
|
||||||
if (context.player() != null) {
|
if (context.player() != null) {
|
||||||
ActuallyAdditions.LOGGER.info("Received number update");
|
|
||||||
Player player = context.player();
|
Player player = context.player();
|
||||||
Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID"))));
|
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")));
|
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) -> {
|
public static final IDataHandler GUI_STRING_TO_TILE_HANDLER = (compound, context) -> {
|
||||||
if (context.player() != null) {
|
if (context.player() != null) {
|
||||||
ActuallyAdditions.LOGGER.info("Received string update");
|
|
||||||
Player player = context.player();
|
Player player = context.player();
|
||||||
Level level = player.getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("WorldID"))));
|
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")));
|
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() {
|
public static final IDataHandler SYNC_PLAYER_DATA = new IDataHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void handleData(CompoundTag compound, IPayloadContext context) {
|
public void handleData(CompoundTag compound, IPayloadContext context) {
|
||||||
ActuallyAdditions.LOGGER.info("Received player data");
|
|
||||||
if(context.flow() == PacketFlow.CLIENTBOUND) {
|
if(context.flow() == PacketFlow.CLIENTBOUND) {
|
||||||
PacketHelperClient.handlePlayerUpdate(compound, context);
|
PacketHelperClient.handlePlayerUpdate(compound, context);
|
||||||
}
|
}
|
||||||
|
@ -130,7 +122,6 @@ public final class PacketHandler {
|
||||||
};
|
};
|
||||||
public static final IDataHandler PLAYER_DATA_TO_SERVER = (compound, context) -> {
|
public static final IDataHandler PLAYER_DATA_TO_SERVER = (compound, context) -> {
|
||||||
if (context.player() != null) {
|
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"))));
|
Level level = context.player().getServer().getLevel(ResourceKey.create(Registries.DIMENSION, ResourceLocation.tryParse(compound.getString("World"))));
|
||||||
Player player = level.getServer().getPlayerList().getPlayer(compound.getUUID("UUID"));
|
Player player = level.getServer().getPlayerList().getPlayer(compound.getUUID("UUID"));
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
|
|
Loading…
Reference in a new issue