9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

Try to fix replay api crash (#713)

* Try to fix replay api crash

* Revert unnecessary volatile
This commit is contained in:
Lumine1909
2025-08-21 18:41:41 -07:00
committed by GitHub
parent 0ad976f6b5
commit 3feea8e40a

View File

@@ -235,7 +235,11 @@ public class Recorder extends Connection {
private void savePacket(Packet<?> packet, final ConnectionProtocol protocol) {
final long timestamp = getCurrentTimeAndUpdate();
try {
replayFile.savePacket(timestamp, packet, protocol);
} catch (Exception e) {
LOGGER.severe("Error saving packet on thread " + Thread.currentThread() + ". Are you using some plugin that modify data asynchronously?", e);
}
}
public boolean isSaved() {