From 577ec5c4ee35d337ea2a6f44de0b66e72a6735e4 Mon Sep 17 00:00:00 2001 From: Nils Gereke Date: Sun, 22 Sep 2024 14:09:12 +0200 Subject: [PATCH] chore: code style --- .../net/imprex/zip/nms/v1_21_R1/ZipNmsManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/zip-nms/zip-nms-v1_21_R1/src/main/java/net/imprex/zip/nms/v1_21_R1/ZipNmsManager.java b/zip-nms/zip-nms-v1_21_R1/src/main/java/net/imprex/zip/nms/v1_21_R1/ZipNmsManager.java index 9318691..36248a6 100644 --- a/zip-nms/zip-nms-v1_21_R1/src/main/java/net/imprex/zip/nms/v1_21_R1/ZipNmsManager.java +++ b/zip-nms/zip-nms-v1_21_R1/src/main/java/net/imprex/zip/nms/v1_21_R1/ZipNmsManager.java @@ -39,15 +39,15 @@ public class ZipNmsManager implements NmsManager { static { NBT_EMPTY_ITEMSTACK.putString("id", "minecraft:air"); - + BiConsumer setProfile = (meta, profile) -> { throw new NullPointerException("Unable to find 'setProfile' method!"); }; - + Class craftMetaSkullClass = new ItemStack(Material.PLAYER_HEAD) .getItemMeta() .getClass(); - + Method setResolvableProfileMethod = ReflectionUtil.searchMethod(craftMetaSkullClass, void.class, ResolvableProfile.class); if (setResolvableProfileMethod != null) { setProfile = (meta, profile) -> { @@ -69,7 +69,7 @@ public class ZipNmsManager implements NmsManager { }; } } - + SET_PROFILE = setProfile; } @@ -136,7 +136,7 @@ public void setSkullProfile(SkullMeta meta, String texture) { try { GameProfile gameProfile = new GameProfile(UUID.randomUUID(), ""); gameProfile.getProperties().put("textures", new Property("textures", texture)); - + SET_PROFILE.accept(meta, gameProfile); } catch (Exception e) { e.printStackTrace();