mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
ScriptLivingBase:
-Reverted previous change, not worth the inaccuracies it would cause on servers
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user