Skip to content

Commit

Permalink
Fix self preview nametag with PolyNametag
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Aug 3, 2024
1 parent 93140e6 commit fa2afc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ dependencies {
// If we are building for legacy forge, includes the launch wrapper with `shade` as we configured earlier.
if (platform.isLegacyForge) {
compileOnly("org.spongepowered:mixin:0.7.11-SNAPSHOT")
shade("cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta+")
shade("cc.polyfrost:oneconfig-wrapper-launchwrapper:1.0.0-beta17")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
public class RendererLivingEntityMixin {
@Inject(method = "canRenderName(Lnet/minecraft/entity/EntityLivingBase;)Z", at = @At("HEAD"), cancellable = true)
private void onCanRenderName(CallbackInfoReturnable<Boolean> cir) {
if (ModConfig.INSTANCE.getPlayerPreview().getSelfPreview().getRenderingNametag() && ModConfig.INSTANCE.getPlayerPreview().getSelfPreview().getShowNametag()) {
cir.setReturnValue(true);
if (ModConfig.INSTANCE.getPlayerPreview().getSelfPreview().getRenderingNametag()) {
cir.setReturnValue(ModConfig.INSTANCE.getPlayerPreview().getSelfPreview().getShowNametag());
}
}

Expand Down

0 comments on commit fa2afc8

Please sign in to comment.