feat(03-04): ajoute 6 champs optionnels sur GravityFlipRegion (Task 1)
- POJO: FallDamage (false), GracePeriodMs (2500), VerticalForce (0.1), AffectPlayers/Npcs/Items (true) avec getters/setters - CODEC: 6 .append sans nonNull validator (sémantique optionnelle) - Tests: 6 round-trip + back-compat defaults (9 tests total)
This commit is contained in:
@@ -63,8 +63,9 @@ public class GravityFlipPlugin extends JavaPlugin {
|
||||
super.start();
|
||||
GravityFlipConfig cfg = configHolder.get();
|
||||
this.registry = new RegionRegistry(cfg, configHolder);
|
||||
this.gravityApplier = new GravityApplier(th ->
|
||||
getLogger().at(Level.WARNING).withCause(th).log("gravityApply failed"));
|
||||
this.gravityApplier = new GravityApplier(
|
||||
th -> getLogger().at(Level.WARNING).withCause(th).log("gravityApply failed"),
|
||||
msg -> getLogger().at(Level.INFO).log("%s", msg));
|
||||
this.tickLoop = new RegionTickLoop(registry, gravityApplier, th ->
|
||||
getLogger().at(Level.WARNING).withCause(th).log("detectTick failed"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user