Skip to content

Commit

Permalink
Fix ModItemObtainedTrigger using wrong modId key
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Apr 29, 2024
1 parent de872c5 commit d48b0b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ModItemObtainedTrigger extends SimpleCriterionTrigger<ModItemObtain
public static final Codec<ModItemObtainedTrigger.Instance> CODEC = RecordCodecBuilder.create(
p_311401_ -> p_311401_.group(
ExtraCodecs.strictOptionalField(EntityPredicate.ADVANCEMENT_CODEC, "player").forGetter(ModItemObtainedTrigger.Instance::player),
Codec.STRING.fieldOf("modId").forGetter(ModItemObtainedTrigger.Instance::modId)
Codec.STRING.fieldOf("mod_id").forGetter(ModItemObtainedTrigger.Instance::modId)
)
.apply(p_311401_, ModItemObtainedTrigger.Instance::new)
);
Expand Down

0 comments on commit d48b0b9

Please sign in to comment.