geforkt von Mirrors/FastAsyncWorldEdit
Use correct find class in ExtentTraverser (#2649)
use correct find class in ExtentTraverser
Dieser Commit ist enthalten in:
Ursprung
c10f58ac95
Commit
2dee197f2b
@ -51,11 +51,10 @@ public class ExtentTraverser<T extends Extent> {
|
||||
return last;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Nullable
|
||||
public <U> U findAndGet(Class<U> clazz) {
|
||||
ExtentTraverser<Extent> traverser = find(clazz);
|
||||
return (traverser != null) ? (U) traverser.get() : null;
|
||||
public <U extends Extent> U findAndGet(Class<U> clazz) {
|
||||
ExtentTraverser<U> traverser = find(clazz);
|
||||
return (traverser != null) ? traverser.get() : null;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren