Skip to content

Commit

Permalink
Fixed inccorect stance appearing in the debug screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Mar 9, 2024
1 parent d154618 commit 1f8b52d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/java/eu/ha3/presencefootsteps/PFDebugHud.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public void render(HitResult blockHit, HitResult fluidHit, List<String> finalLis
config.otherPlayerVolume
));
list.add(String.format("Stepping Mode: %s, Targeting Mode: %s, Footwear: %s", config.getLocomotion() == Locomotion.NONE
? String.format("AUTO (%sDETECTED %s%s)", Formatting.BOLD, Locomotion.forPlayer(client.player, Locomotion.BIPED), Formatting.RESET)
: config.getLocomotion().toString(), config.getEntitySelector(), config.getEnabledFootwear()));
? String.format("AUTO (%sDETECTED %s%s)", Formatting.BOLD, Locomotion.forPlayer(client.player, Locomotion.NONE), Formatting.RESET)
: config.getLocomotion(), config.getEntitySelector(), config.getEnabledFootwear()));
list.add(String.format("Data Loaded: B%s P%s G%s",
engine.getIsolator().blocks().getSubstrates().size(),
engine.getIsolator().primitives().getSubstrates().size(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import eu.ha3.presencefootsteps.sound.SoundEngine;
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
import net.minecraft.client.network.ClientPlayerEntity;
import net.minecraft.client.resource.language.I18n;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.player.PlayerEntity;
Expand Down Expand Up @@ -53,10 +52,6 @@ public Text getOptionTooltip() {
return Text.translatable(translationKey + ".tooltip");
}

public String getDisplayName() {
return I18n.translate("pf.stance", I18n.translate(translationKey));
}

public static Locomotion byName(String name) {
return registry.getOrDefault(name, BIPED);
}
Expand Down

0 comments on commit 1f8b52d

Please sign in to comment.