1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-04 15:31:36 +00:00

Fix cocoa beans, rename shouldSkipSaving to skipSaving in the SessionAcceptCodeOfConductEvent

This commit is contained in:
onebeastchris
2025-10-11 15:26:41 +02:00
parent 4558576e73
commit 1a02b91293
3 changed files with 8 additions and 8 deletions

View File

@@ -81,7 +81,7 @@ public class CodeOfConductManager {
public void saveCodeOfConductAccepted(GeyserSession session, String codeOfConduct) {
SessionAcceptCodeOfConductEvent event = new SessionAcceptCodeOfConductEvent(session, codeOfConduct);
session.getGeyser().getEventBus().fire(event);
if (!event.wasSavedElsewhere()) {
if (!event.shouldSkipSaving()) {
playerAcceptedCodeOfConducts.put(session.xuid(), codeOfConduct.hashCode());
dirty = true;
}