Skip to content

Commit

Permalink
Release 5 HotFix 3
Browse files Browse the repository at this point in the history
changes
+ fixed nametags crash
  • Loading branch information
Strangerrrs committed Jul 10, 2024
1 parent 09c7d2d commit 0c91743
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/keystrokesmod/module/impl/render/Nametags.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import keystrokesmod.module.setting.impl.ButtonSetting;
import keystrokesmod.module.setting.impl.DescriptionSetting;
import keystrokesmod.module.setting.impl.SliderSetting;
import keystrokesmod.utility.PacketUtils;
import keystrokesmod.utility.RenderUtils;
import keystrokesmod.utility.Utils;
import net.minecraft.client.gui.ScaledResolution;
Expand Down Expand Up @@ -210,6 +211,9 @@ private void updatePositions() {
}
if (convertedPosition[2] >= 0.0D && convertedPosition[2] < 1.0D) {
double[] headConvertedPosition = convertTo2D(interpolatedX, interpolatedY + 1.0D, interpolatedZ);
if (headConvertedPosition == null) {
continue;
}
double height = Math.abs(headConvertedPosition[1] - convertedPosition[1]);
entityPositions.put(entityPlayer, new double[]{convertedPosition[0], convertedPosition[1], height, convertedPosition[2]});
}
Expand Down

0 comments on commit 0c91743

Please sign in to comment.