Skip to content

Commit

Permalink
chore: clean up debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Dec 6, 2024
1 parent 976de0e commit 6f26fa1
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package io.github.thebusybiscuit.mobcapturer.utils.compatibility;

import io.github.thebusybiscuit.mobcapturer.MobCapturer;
import java.lang.reflect.InvocationTargetException;
import java.util.Locale;

import lombok.experimental.UtilityClass;
import javax.annotation.Nonnull;

import org.bukkit.NamespacedKey;
import org.bukkit.entity.ZombieVillager;

import javax.annotation.Nonnull;

import java.lang.reflect.InvocationTargetException;
import java.util.Locale;
import java.util.logging.Level;
import lombok.experimental.UtilityClass;

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

0 comments on commit 6f26fa1

Please sign in to comment.