Skip to content

Commit

Permalink
feat(game.loot): fix set_custom_effects function codec
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Feb 27, 2024
1 parent b2a9eb8 commit 44c6e6b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected ItemStack run(ItemStack stack, LootContext ctx) {
public static final Codec<SetCustomEffectsFunction> CODEC =
RecordCodecBuilder.create(
instance -> commonFields(instance)
.and(MobEffectInstanceSerializer.CODEC.listOf().fieldOf("").forGetter(o -> o.effects))
.and(MobEffectInstanceSerializer.CODEC.listOf().fieldOf("effects").forGetter(o -> o.effects))
.apply(instance, SetCustomEffectsFunction::new)
);

Expand Down

0 comments on commit 44c6e6b

Please sign in to comment.