Skip to content

Commit

Permalink
fix infinite loading on 1.20.4 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
aabssmc committed Sep 26, 2024
1 parent 2ce04a6 commit c8c839a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
@Mixin(PlayerEntityRenderer.class)
public class PlayerEntityRendererMixin {
@Inject(at = {@At("HEAD")}, method = "renderLabelIfPresent*", cancellable = true)
//? if <=1.20.4 {
/*public void renderLabelIfPresent(AbstractClientPlayerEntity player, Text text, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i, CallbackInfo ci) {
*///?} else {
public void renderLabelIfPresent(AbstractClientPlayerEntity player, Text text, MatrixStack matrixStack, VertexConsumerProvider vertexConsumerProvider, int i, float f, CallbackInfo ci) {
//?}
if (player.isMainPlayer()) return;
String name = player.getName().getString().toLowerCase();
if (EventUtils.MOD.config.whitelistedPlayers.contains(name) &&
Expand Down

0 comments on commit c8c839a

Please sign in to comment.