Skip to content

Commit

Permalink
add some debug logging for some time
Browse files Browse the repository at this point in the history
  • Loading branch information
Raycoms committed Sep 9, 2024
1 parent 7d4b3bc commit 98ead7c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.minecolonies.api.colony.interactionhandling.AbstractInteractionResponseHandler;
import com.minecolonies.api.colony.interactionhandling.IChatPriority;
import com.minecolonies.api.colony.interactionhandling.InteractionValidatorRegistry;
import com.minecolonies.api.util.Log;
import com.minecolonies.api.util.NBTUtils;
import com.minecolonies.api.util.Tuple;
import com.minecolonies.api.util.Utils;
Expand Down Expand Up @@ -213,6 +214,11 @@ 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

0 comments on commit 98ead7c

Please sign in to comment.