Commit 4399087
Address Copilot review on the 1.8.0 release PR (#421)
- ChallengesAddon.allLoaded(): reset levelProvided=false when the Level
add-on is absent, so isLevelProvided() can't be stale-true and
TryToComplete.rewardIslandLevel() can't NPE on a null level add-on.
- EditChallengePanel: sort the required-biome list before rendering so the
admin GUI description is stable (the backing set is unordered).
- ChallengesPanel.createToggleUndeployedButton(): guard the template
description with !isBlank() to avoid inserting empty lore lines, matching
the other button builders.
- ChallengesAddonTest: verify placeholder registration with atLeastOnce()
instead of times(13) so the tests don't break whenever a placeholder is
added or removed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DfEq1X2sy57G8nq2Cd23ba1 parent 152ef0c commit 4399087
4 files changed
Lines changed: 13 additions & 7 deletions
File tree
- src
- main/java/world/bentobox/challenges
- panel
- admin
- user
- test/java/world/bentobox/challenges
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
965 | | - | |
966 | | - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
967 | 970 | | |
968 | 971 | | |
969 | 972 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
| 717 | + | |
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
| 381 | + | |
381 | 382 | | |
382 | | - | |
| 383 | + | |
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
| |||
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
401 | | - | |
| 402 | + | |
| 403 | + | |
402 | 404 | | |
403 | | - | |
| 405 | + | |
404 | 406 | | |
405 | 407 | | |
406 | 408 | | |
| |||
0 commit comments