Create packet class for PacketCreator::showNotes

This commit is contained in:
P0nk
2022-12-27 12:10:33 +01:00
parent 2a460de911
commit 65111ae209
4 changed files with 57 additions and 32 deletions

View File

@@ -64,7 +64,7 @@ public final class NoteActionHandler extends AbstractPacketHandler {
int id = p.readInt();
p.readByte(); //Fame, but we read it from the database :)
Optional<Note> discardedNote = noteService.discard(id);
Optional<Note> discardedNote = noteService.delete(id);
if (discardedNote.isEmpty()) {
log.warn("Note with id {} not able to be discarded. Already discarded?", id);
continue;