Skip to content

Commit 6f26fa1

Browse files
committed
chore: clean up debug logs
1 parent 976de0e commit 6f26fa1

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/main/java/io/github/thebusybiscuit/mobcapturer/utils/compatibility/VillagerProfessionX.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
package io.github.thebusybiscuit.mobcapturer.utils.compatibility;
22

3-
import io.github.thebusybiscuit.mobcapturer.MobCapturer;
3+
import java.lang.reflect.InvocationTargetException;
4+
import java.util.Locale;
45

5-
import lombok.experimental.UtilityClass;
6+
import javax.annotation.Nonnull;
67

78
import org.bukkit.NamespacedKey;
89
import org.bukkit.entity.ZombieVillager;
910

10-
import javax.annotation.Nonnull;
11-
12-
import java.lang.reflect.InvocationTargetException;
13-
import java.util.Locale;
14-
import java.util.logging.Level;
11+
import lombok.experimental.UtilityClass;
1512

1613
// TODO: This needs to be changed since 1.22 the enum methods will be removed
1714
@UtilityClass
@@ -28,7 +25,6 @@ public static String getFromZombieVillager(@Nonnull ZombieVillager entity) {
2825
var nsKey = (NamespacedKey) getKeyMethod.invoke(prof);
2926
return nsKey.getKey().toUpperCase(Locale.ROOT);
3027
} catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
31-
MobCapturer.getInstance().getLogger().log(Level.SEVERE, e, () -> "An error occurred while trying to get the profession of a ZombieVillager");
3228
return "Unknown";
3329
}
3430
}

0 commit comments

Comments
 (0)