ScriptLivingBase:

-Reverted previous change, not worth the inaccuracies it would cause on servers
This commit is contained in:
Luis C.M committed 2023-06-01 00:49:33 -05:00
1 parent 62ee42a23d
commit 01339e7baf
1 file changed
+1 -1
@@ -172,7 +172,7 @@ public class ScriptLivingBase<T extends EntityLivingBase> extends ScriptEntity<T
public IPos getLookingAtPos(int maxDistance, boolean stopOnBlock, boolean stopOnLiquid, boolean stopOnCollision) {
Vec3 lookVec = entity.getLookVec();
return getWorld().rayCastPos(
new double[] {entity.posX, entity.posY + entity.getEyeHeight() + 0.5D, entity.posZ},
new double[] {entity.posX, entity.posY + entity.getEyeHeight(), entity.posZ},
new double[] {lookVec.xCoord, lookVec.yCoord, lookVec.zCoord},
maxDistance, stopOnBlock, stopOnLiquid, stopOnCollision);
}