mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-04 11:11:10 +02:00
Set max steps for ray tracing in BlockProperties as well.
This commit is contained in:
parent
093f9d9595
commit
fc69b10fa4
|
@ -1649,7 +1649,8 @@ public class BlockProperties {
|
|||
*/
|
||||
public static final boolean isPassable(final Location from, final Location to){
|
||||
blockCache.setAccess(from.getWorld());
|
||||
PassableRayTracing rt = new PassableRayTracing();
|
||||
final PassableRayTracing rt = new PassableRayTracing();
|
||||
rt.setMaxSteps(60); // TODO: Configurable ?
|
||||
rt.setBlockCache(blockCache);
|
||||
rt.set(from.getX(), from.getY(), from.getZ(), to.getX(), to.getY(), to.getZ());
|
||||
rt.loop();
|
||||
|
|
Loading…
Reference in New Issue
Block a user