Skip to content

Commit

Permalink
Fix: update default to show icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Gegy committed Oct 31, 2023
1 parent cddfa6b commit 2b6a67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/lovetropics/lib/codec/MoreCodecs.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public final class MoreCodecs {
Codec.INT.fieldOf("amplifier").forGetter(MobEffectInstance::getAmplifier),
Codec.BOOL.optionalFieldOf("ambient", false).forGetter(MobEffectInstance::isAmbient),
Codec.BOOL.optionalFieldOf("particles", true).forGetter(MobEffectInstance::isVisible),
Codec.BOOL.optionalFieldOf("show_icon", false).forGetter(MobEffectInstance::showIcon)
Codec.BOOL.optionalFieldOf("show_icon", true).forGetter(MobEffectInstance::showIcon)
).apply(i, (type, seconds, amplifier, ambient, hideParticles, showIcon) -> {
final int ticks = seconds.map(s -> Math.round(s * SharedConstants.TICKS_PER_SECOND)).orElse(MobEffectInstance.INFINITE_DURATION);
return new MobEffectInstance(type, ticks, amplifier, ambient, hideParticles, showIcon);
Expand Down

0 comments on commit 2b6a67b

Please sign in to comment.