Commit bdc2067
Fix spurious defaultRank warnings for PVP setting flags
The minimumRank validation was clamping SETTING flags that use -1
(disabled) as their defaultRank. Since -1 is a valid disabled state
for SETTING/WORLD_SETTING flags (Island.isAllowed checks >= 0),
restrict the validation to PROTECTION flags only.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5548502 commit bdc2067
File tree
2 files changed
+17
-2
lines changed- src
- main/java/world/bentobox/bentobox/api/flags
- test/java/world/bentobox/bentobox/api/flags
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
801 | | - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
802 | 804 | | |
803 | 805 | | |
804 | 806 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
453 | 466 | | |
0 commit comments