From fc69b10fa49898d238dd5fe0ed82322096e60331 Mon Sep 17 00:00:00 2001 From: asofold Date: Mon, 5 May 2014 23:53:59 +0200 Subject: [PATCH] Set max steps for ray tracing in BlockProperties as well. --- .../fr/neatmonster/nocheatplus/utilities/BlockProperties.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java index da2f51d3..8a23703a 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/utilities/BlockProperties.java @@ -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();