From 40da7b37342646546ba2439f61747e353b0b4276 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Wed, 7 Nov 2018 17:18:43 -0800 Subject: [PATCH] don't fail silently in the future --- src/api/java/baritone/api/pathing/calc/IPath.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/java/baritone/api/pathing/calc/IPath.java b/src/api/java/baritone/api/pathing/calc/IPath.java index 05e0a3bc..ad25911a 100644 --- a/src/api/java/baritone/api/pathing/calc/IPath.java +++ b/src/api/java/baritone/api/pathing/calc/IPath.java @@ -53,7 +53,7 @@ public interface IPath { * (as opposed to Path objects that are just constructed every frame for rendering) */ default IPath postProcess() { - return this; + throw new UnsupportedOperationException(); } /** @@ -121,7 +121,7 @@ public interface IPath { * @return The result of this cut-off operation */ default IPath cutoffAtLoadedChunks() { - return this; + throw new UnsupportedOperationException(); } /** @@ -133,7 +133,7 @@ public interface IPath { * @see Settings#pathCutoffFactor */ default IPath staticCutoff(Goal destination) { - return this; + throw new UnsupportedOperationException(); }