Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Feb 5, 2025
1 parent bcf12a0 commit 3727155
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ResourceLocation getId() {

public static class TriggerInstance extends AbstractCriterionTriggerInstance {

private int level;
private final int level;

public TriggerInstance(ContextAwarePredicate player, int level) {
super(ID, player);
Expand All @@ -40,6 +40,7 @@ public static TriggerInstance hasWizardLevel(int level) {
return new TriggerInstance(ContextAwarePredicate.ANY, level);
}

@Override
public JsonObject serializeToJson(SerializationContext context) {
JsonObject json = super.serializeToJson(context);
json.addProperty("level", level);
Expand Down

0 comments on commit 3727155

Please sign in to comment.