P1.13 : diagnostic « Mismatch in destroy block pos »

- core.ActionsBloc : START / ABORT de casse de bloc (LeftClickBlock, ecoute
  en LOWEST, meme annule). Un ABORT sans START accepte correspondant donne
  une ligne DIAGNOSTIC (au plus une toutes les 10 s par joueur), avec le
  dernier START et s'il a ete annule par un mod.
- D'apres ServerPlayerGameMode (sources NeoForge 21.1.234), destroyPos vaut
  (0,0,0) tant qu'aucun START n'a ete accepte : un START annule par une
  protection de zone puis un ABORT suffit a produire le message.
- Reglage [diagnostic] : actionsBlocIncoherentes (true). Jamais de sanction.
- Tests : ActionsBlocP1Test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cette révision appartient à :
gastineltetClaude Sonnet 5.5 a révisé 2026-10-24 00:36:45 +02:00
1 Parent 7c86d634b9
révision adc326a897
7 fichiers modifiés
+140 -1

Aucun fichier ne correspond à votre recherche

+8 -1
Voir le fichier
@@ -22,7 +22,7 @@ public final class GardeSpec {
private static final ModConfigSpec.DoubleValue SEUIL_EXPULSION;
private static final ModConfigSpec.EnumValue<Sanction> SANCTION_MAX;
private static final ModConfigSpec.BooleanValue JOURNAL_TOUJOURS, SETBACK_SOL;
private static final ModConfigSpec.BooleanValue JOURNAL_TOUJOURS, SETBACK_SOL, DIAG_ACTIONS;
private static final ModConfigSpec.IntValue GRACE_CONNEXION, GRACE_APRES_EXPULSION;
private static final ModConfigSpec.DoubleValue STEP_HAUTEUR, STEP_MARGE, CRIT_MICRO;
private static final ModConfigSpec.IntValue CRIT_SERIE, ANTI_FAIM_TICKS, ELY_DEPLOIEMENTS;
@@ -267,6 +267,12 @@ public final class GardeSpec {
.defineInRange("antiFaimTicks", 20, 5, 1200);
b.pop();
b.comment("0.5 : diagnostics (journal seulement, jamais de sanction).").push("diagnostic");
DIAG_ACTIONS = b.comment("Journaliser les ABORT de casse de bloc sans START correspondant (message vanilla « Mismatch in destroy block pos »),",
"au plus une ligne toutes les 10 s par joueur.")
.define("actionsBlocIncoherentes", true);
b.pop();
b.comment("0.5 : grâces à la connexion (reconnexion en l'air, expulsion récente).").push("graces");
GRACE_CONNEXION = b.comment("Ticks sans contrôle de mouvement ni timer après la connexion (la téléportation de connexion en donne déjà graceTeleportTicks).")
.defineInRange("graceConnexionTicks", 100, 0, 1200);
@@ -365,6 +371,7 @@ public final class GardeSpec {
c.sanctionMax = SANCTION_MAX.get();
c.journalToujoursSanctions = JOURNAL_TOUJOURS.get();
c.journalLignesParSeconde = JOURNAL_LIMITE.get();
c.diagnosticActionsBloc = DIAG_ACTIONS.get();
c.angleMaxDegres = ANGLE_MAX.get();
c.ciblesMax = CIBLES_MAX.get();
c.fenetreCiblesMs = FENETRE_CIBLES_MS.get();