mirror of
https://github.com/GTNewHorizons/waila.git
synced 2026-11-21 20:52:40 +00:00
Fixed raytracing bug when using different model then player.
This commit is contained in:
1 parent
3527aa3ddf
commit
2bc138f222
1 file changed
+1
-4
@@ -77,10 +77,7 @@ public class RayTracing {
|
||||
|
||||
public MovingObjectPosition rayTrace(EntityLivingBase entity, double par1, float par3)
|
||||
{
|
||||
Vec3 vec3 = entity.getPosition(par3);
|
||||
if (entity.getEyeHeight() != 0.12F)
|
||||
vec3.yCoord += entity.getEyeHeight();
|
||||
|
||||
Vec3 vec3 = entity.getPosition(par3);
|
||||
Vec3 vec31 = entity.getLook(par3);
|
||||
Vec3 vec32 = vec3.addVector(vec31.xCoord * par1, vec31.yCoord * par1, vec31.zCoord * par1);
|
||||
|
||||
|
||||
Reference in new issue
Block a user