Skip to content

Commit

Permalink
版本1.20.1-1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ChloePrime committed May 17, 2024
1 parent 8ea2c37 commit d2f23e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ static HitFeedbackAction addEmitter(Supplier<? extends ParticleOptions> particle
if (ClientConfig.PARTICLE_AMOUNT.get() == 0) {
return;
}
if (Minecraft.getInstance().options.particles == ParticleStatus.MINIMAL) {
if (Minecraft.getInstance().options.particles().get() == ParticleStatus.MINIMAL) {
return;
}
var pos = packet.position;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class ParticleEmitterBase extends TrackingEmitter {
protected Vec3 relMotion;
@SuppressWarnings("FieldMayBeFinal")
private boolean prepared;
private final float configRate = ClientConfig.PARTICLE_AMOUNT.get().floatValue() * switch (Minecraft.getInstance().options.particles) {
private final float configRate = ClientConfig.PARTICLE_AMOUNT.get().floatValue() * switch (Minecraft.getInstance().options.particles().get()) {
case ALL -> 1F;
case DECREASED -> 0.5F;
case MINIMAL -> 0F;
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ minecraft_version=1.20.1
parchment_version=2023.09.03

archives_base_name=HitFeedback
mod_version=1.20.1-1.1.0
mod_version=1.20.1-1.1.1
maven_group=mod.chloeprime

architectury_version=9.2.14
Expand Down

0 comments on commit d2f23e1

Please sign in to comment.