4
4
Fork 3
mirror of https://github.com/GeyserMC/Geyser.git synced 2024-08-14 23:57:35 +00:00

Clear the Reflections scanners to stop it trying to scan ()

This commit is contained in:
rtm516 2020-11-23 01:08:59 +00:00 committed by GitHub
parent 881e7a051c
commit e412ba0993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,7 @@ public class FileUtils {
* @return The created Reflections object
*/
public static Reflections getReflections(String path) {
Reflections reflections = new Reflections(new ConfigurationBuilder());
Reflections reflections = new Reflections(new ConfigurationBuilder().setScanners());
XmlSerializer serializer = new XmlSerializer();
URL resource = FileUtils.class.getClassLoader().getResource("META-INF/reflections/" + path + "-reflections.xml");
try (InputStream inputStream = resource.openConnection().getInputStream()) {