mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 09:09:08 +00:00
Fix Defaults / Syncing
This commit is contained in:
1 parent
c339e5edbc
commit
67237e794f
9 files changed
+219
-265
No files matched your search
@@ -163,7 +163,8 @@ public class EntityAbilityLaser extends EntityAbilityProjectile {
|
||||
private void checkBlockCollision() {
|
||||
Vec3 start = Vec3.createVectorHelper(startX, startY, startZ);
|
||||
Vec3 end = Vec3.createVectorHelper(endX, endY, endZ);
|
||||
MovingObjectPosition blockHit = worldObj.rayTraceBlocks(start, end);
|
||||
// Use full raytrace that doesn't stop at liquids and checks all blocks
|
||||
MovingObjectPosition blockHit = worldObj.func_147447_a(start, end, false, true, false);
|
||||
|
||||
if (blockHit != null && blockHit.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) {
|
||||
// Laser stops at block
|
||||
|
||||
Reference in new issue
Block a user