From 50885a0b0bd9ad39885b68efb20a1276f16886a3 Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Mon, 27 Sep 2021 16:50:17 +0000 Subject: Prettified Code! --- .../thatgravyboat/skyblockhud/textures/TextureObject.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/main/java/com/thatgravyboat/skyblockhud/textures') diff --git a/src/main/java/com/thatgravyboat/skyblockhud/textures/TextureObject.java b/src/main/java/com/thatgravyboat/skyblockhud/textures/TextureObject.java index 3af2ac1..6403e18 100644 --- a/src/main/java/com/thatgravyboat/skyblockhud/textures/TextureObject.java +++ b/src/main/java/com/thatgravyboat/skyblockhud/textures/TextureObject.java @@ -23,13 +23,11 @@ public class TextureObject { Arrays .stream(textureObject.getClass().getDeclaredFields()) .filter(field -> field.getType().equals(ResourceLocation.class)) - .forEach( - field -> { - try { - field.set(textureObject, new ResourceLocation(json.get(field.getName()).getAsString())); - } catch (Exception ignored) {} - } - ); + .forEach(field -> { + try { + field.set(textureObject, new ResourceLocation(json.get(field.getName()).getAsString())); + } catch (Exception ignored) {} + }); return textureObject; } -- cgit