From 169d0054e85469c6f2fe64b0acd2ee388e8bd90c Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 17 Mar 2024 08:49:51 +0000 Subject: [PATCH] Fix findAndGet in ExtentTraverser --- .../com/fastasyncworldedit/core/util/ExtentTraverser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/ExtentTraverser.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/ExtentTraverser.java index e7038deaa..6150ae2e3 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/ExtentTraverser.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/util/ExtentTraverser.java @@ -53,8 +53,8 @@ public class ExtentTraverser { @SuppressWarnings("unchecked") @Nullable - public U findAndGet(Class clazz) { - ExtentTraverser traverser = find(clazz); + public U findAndGet(Class clazz) { + ExtentTraverser traverser = find((Class) clazz); return (traverser != null) ? (U) traverser.get() : null; }