-
Notifications
You must be signed in to change notification settings - Fork 9
Fix error default page not loaded #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add warning log when refreshing UI without current page.
|
|
||
| UUIDComponent uuidComponent = store.getComponent(ref, UUIDComponent.getComponentType()); | ||
| FancyPlayerImpl fp = (FancyPlayerImpl) getPlayerService().getByUUID(uuidComponent.getUuid()); | ||
| UUIDComponent uuidComponent = ref.getStore().getComponent(ref, UUIDComponent.getComponentType()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't you use the store var that you added above?
| private void load() { | ||
| List<ScoreboardPage> pages = storage.loadAllPages(); | ||
| if (pages == null || pages.isEmpty()) { | ||
| FancyCorePlugin.get().getFancyLogger().error("No scoreboard pages loaded from storage!"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine when no scoreboards exists. Maybe they don't want to use the scoreboard feature
| } | ||
| } | ||
|
|
||
| if (!cache.containsKey("default")) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"default" is not required
No description provided.