Skip to content

Commit

Permalink
Update HurtEntity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra-Myers authored Dec 30, 2024
1 parent 48f06d7 commit f28e1c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public HurtEntity(Holder<DamageType> damageType, LevelBasedValue damage) {
}
public static final MapCodec<HurtEntity> PARTIAL_CODEC = RecordCodecBuilder.mapCodec(instance ->
instance.group(DamageType.CODEC.fieldOf("damage_type").forGetter(HurtEntity::damageType),
LevelBasedValue.CODEC.fieldOf("duration").forGetter(HurtEntity::maxDamage))
LevelBasedValue.CODEC.fieldOf("damage").forGetter(HurtEntity::maxDamage))
.apply(instance, HurtEntity::new)
);
public static final MapCodec<HurtEntity> FULL_CODEC = RecordCodecBuilder.mapCodec(instance ->
Expand Down

0 comments on commit f28e1c9

Please sign in to comment.