mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-18 18:01:17 +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){
|
public static final boolean isPassable(final Location from, final Location to){
|
||||||
blockCache.setAccess(from.getWorld());
|
blockCache.setAccess(from.getWorld());
|
||||||
PassableRayTracing rt = new PassableRayTracing();
|
final PassableRayTracing rt = new PassableRayTracing();
|
||||||
|
rt.setMaxSteps(60); // TODO: Configurable ?
|
||||||
rt.setBlockCache(blockCache);
|
rt.setBlockCache(blockCache);
|
||||||
rt.set(from.getX(), from.getY(), from.getZ(), to.getX(), to.getY(), to.getZ());
|
rt.set(from.getX(), from.getY(), from.getZ(), to.getX(), to.getY(), to.getZ());
|
||||||
rt.loop();
|
rt.loop();
|
||||||
|
Loading…
Reference in New Issue
Block a user