mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
IWorld:
-Fixed offset not working right on rayCastEntities()
This commit is contained in:
1 parent
80916de553
commit
b4f112ee89
1 file changed
+1
-1
@@ -408,7 +408,7 @@ public class ScriptWorld implements IWorld {
|
||||
ArrayList<IEntity> entities = new ArrayList<>();
|
||||
|
||||
Vec3 currentPos = Vec3.createVectorHelper(startPos[0], startPos[1], startPos[2]); int rep = 0;
|
||||
currentPos.addVector(lookVector[0]*offset, lookVector[1]*offset, lookVector[2]*offset);
|
||||
currentPos = currentPos.addVector(lookVector[0]*offset, lookVector[1]*offset, lookVector[2]*offset);
|
||||
|
||||
while (rep++ < maxDistance + 10) {
|
||||
currentPos = currentPos.addVector(lookVector[0], lookVector[1], lookVector[2]);
|
||||
|
||||
Reference in new issue
Block a user