Use new single trace isVisible api

This commit is contained in:
Brady
2023-06-19 21:45:52 -05:00
parent 753b1cf1c3
commit ee0a6c2523
2 changed files with 15 additions and 17 deletions

View File

@@ -539,7 +539,7 @@ public final class ElytraBehavior extends Behavior implements IElytraBehavior, H
final boolean clear;
if (!ignoreLava) {
// if start == dest then the cpp raytracer dies
clear = start.equals(dest) || !this.context.raytrace(start.x, start.y, start.z, dest.x, dest.y, dest.z);
clear = start.equals(dest) || this.context.raytrace(start.x, start.y, start.z, dest.x, dest.y, dest.z);
} else {
clear = ctx.world().rayTraceBlocks(start, dest, false, false, false) == null;
}