File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/main/java/io/github/thebusybiscuit/mobcapturer/utils/compatibility Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 11package 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
78import org .bukkit .NamespacedKey ;
89import 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 }
You can’t perform that action at this time.
0 commit comments