Skip to content

Commit 02c4bf3

Browse files
committed
Small changes
1 parent 464ee50 commit 02c4bf3

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/main/java/org/polyfrost/polyhitbox/mixin/MixinRenderManager.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public abstract class MixinRenderManager {
5454
//#else
5555
//$$ Entity entity,
5656
//$$ float tickDelta,
57-
//#endif
5857
//#if MC >=1.21.1
5958
//$$ float offsetX, float offsetY, float offsetZ,
6059
//#endif
60+
//#endif
6161
CallbackInfo ci
6262
) {
6363
//#else
@@ -77,15 +77,7 @@ public abstract class MixinRenderManager {
7777
//$$ OmniVec3d offset = OmniVec3d.ZERO;
7878
//#endif
7979

80-
OmniVec3d entityPosition = new OmniVec3d(
81-
//#if MC >=1.16.5
82-
entity.getX(), entity.getY(), entity.getZ()
83-
//#elseif MC >=1.12.2
84-
//$$ entity.posX, entity.posY, entity.posZ
85-
//#else
86-
//$$ entity.x, entity.y, entity.z
87-
//#endif
88-
);
80+
OmniVec3d entityPosition = new OmniVec3d(entity.getPos());
8981
OmniVec3d lookVec = new OmniVec3d(entity.getRotationVector());
9082
OmniAABB entityAABB = new OmniAABB(entity.getBoundingBox());
9183

0 commit comments

Comments
 (0)