From 3dbe5fcda8bcd61de22f5329230099ba77f22392 Mon Sep 17 00:00:00 2001 From: asofold Date: Sun, 17 Feb 2013 13:56:13 +0100 Subject: [PATCH] Add constructor without arguments to RayTracing for convenience. --- .../nocheatplus/utilities/PassableRayTracing.java | 9 --------- .../fr/neatmonster/nocheatplus/utilities/RayTracing.java | 4 ++++ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/PassableRayTracing.java b/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/PassableRayTracing.java index 08abe7dc..11ec5aec 100644 --- a/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/PassableRayTracing.java +++ b/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/PassableRayTracing.java @@ -5,20 +5,11 @@ public class PassableRayTracing extends RayTracing{ protected BlockCache blockCache = null; protected boolean collides = false; - - /** - * Empty constructor for setting other properties later. - */ - public PassableRayTracing() { - super(0, 0, 0, 0, 0, 0); - } - public BlockCache getBlockCache() { return blockCache; } - public void setBlockCache(BlockCache blockCache) { this.blockCache = blockCache; } diff --git a/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/RayTracing.java b/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/RayTracing.java index 0976d597..1ac5bb49 100644 --- a/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/RayTracing.java +++ b/NCPCompat/src/main/java/fr/neatmonster/nocheatplus/utilities/RayTracing.java @@ -34,6 +34,10 @@ public abstract class RayTracing { set(x0, y0, z0, x1, y1, z1); } + public RayTracing(){ + set(0, 0, 0, 0, 0, 0); + } + public void set(double x0, double y0, double z0, double x1, double y1, double z1){ // // TODO: Consider not using end-points at all. // this.x0 = x0;