Update to 1.21.11 (#1106)
Co-authored-by: Jonas Herzig <me@johni0702.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user