Skip to content

Commit

Permalink
make this non null and reduce logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Sep 9, 2024
1 parent 0d524e6 commit 46b92bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,6 @@ public void deserializeNBT(@NotNull final HolderLookup.Provider provider, @NotNu
*/
protected void loadValidator()
{
if (validatorId == null)
{
validatorId = Component.empty();
Log.getLogger().error("Validator id is null: " + this.getClass() + " " + this.getInquiry());
}
this.validator = InteractionValidatorRegistry.getStandardInteractionValidatorPredicate(validatorId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public SimpleNotificationInteraction(
final Component inquiry,
final IChatPriority priority)
{
super(inquiry, null, priority);
super(inquiry, Component.empty(), priority);
}

@Override
Expand Down

0 comments on commit 46b92bd

Please sign in to comment.