Update to 1.21.11 (#1106)

Co-authored-by: Jonas Herzig <me@johni0702.de>
This commit is contained in:
TKD_Kedis
2025-12-16 16:34:53 +01:00
committed by GitHub
parent 713db19928
commit caffd41358
25 changed files with 156 additions and 39 deletions

View File

@@ -139,7 +139,10 @@ public class Util {
//#if MC>=10800
public static Vector3f getCameraPos() {
MinecraftClient mc = MinecraftClient.getInstance();
//#if MC>=11400
//#if MC>=12111
//$$ Vec3d pos = mc.getEntityRenderDispatcher().camera.getCameraPos();
//$$ return new Vector3f((float) pos.x, (float) pos.y, (float) pos.z);
//#elseif MC>=11400
Vec3d pos = mc.getEntityRenderDispatcher().camera.getPos();
return new Vector3f((float) pos.x, (float) pos.y, (float) pos.z);
//#else