Skip to content

Commit

Permalink
Logger cleanup for Entities / Versus Litematics
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Jun 29, 2024
1 parent aaf84d1 commit 005bddc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public <P extends IServerPayloadData> void decodeServerData(Identifier channel,
readingSessionKey = this.readingSessionKeys.get(uuid);
}

Servux.logger.warn("ServuxLitematicaHandler#decodeServerData(): received Entity Data Packet Slice of size {} (in bytes) // reading session key [{}]", packet.getTotalSize(), readingSessionKey);
Servux.logger.warn("ServuxLitematicaHandler#decodeServerData(): received Litematic Data Packet Slice of size {} (in bytes) // reading session key [{}]", packet.getTotalSize(), readingSessionKey);
PacketByteBuf fullPacket = PacketSplitter.receive(this, readingSessionKey, packet.getBuffer());

if (fullPacket != null)
Expand All @@ -103,7 +103,7 @@ public <P extends IServerPayloadData> void decodeServerData(Identifier channel,
}
catch (Exception e)
{
Servux.logger.error("ServuxLitematicaHandler#decodeServerData(): Entity Data: error reading fullBuffer [{}]", e.getLocalizedMessage());
Servux.logger.error("ServuxLitematicaHandler#decodeServerData(): Litematic Data: error reading fullBuffer [{}]", e.getLocalizedMessage());
}
}
}
Expand Down Expand Up @@ -169,7 +169,7 @@ else if (!ServuxLitematicaHandler.INSTANCE.sendPlayPayload(player, new ServuxLit
}
else if (this.failures.get(id) > MAX_FAILURES)
{
Servux.logger.info("Unregistering Entities Client {} after {} failures (Mod not installed perhaps)", player.getName().getLiteralString(), MAX_FAILURES);
Servux.logger.info("Unregistering Entities Client {} after {} failures (Litematica not installed perhaps)", player.getName().getLiteralString(), MAX_FAILURES);
LitematicsDataProvider.INSTANCE.onPacketFailure(player);
}
else
Expand Down

0 comments on commit 005bddc

Please sign in to comment.