diff options
author | ThatGravyBoat <ThatGravyBoat@users.noreply.github.com> | 2021-09-27 16:50:17 +0000 |
---|---|---|
committer | GitHub Action <actions@github.com> | 2021-09-27 16:50:17 +0000 |
commit | 50885a0b0bd9ad39885b68efb20a1276f16886a3 (patch) | |
tree | 070e35e2bcc8ba551ec7f2517992182911c83859 /src/main/java/com/thatgravyboat/skyblockhud/textures | |
parent | 06c495fd067ed5c16b34322d41e9674319e09506 (diff) | |
download | SkyblockHud-Death-Defied-50885a0b0bd9ad39885b68efb20a1276f16886a3.tar.gz SkyblockHud-Death-Defied-50885a0b0bd9ad39885b68efb20a1276f16886a3.tar.bz2 SkyblockHud-Death-Defied-50885a0b0bd9ad39885b68efb20a1276f16886a3.zip |
Prettified Code!
Diffstat (limited to 'src/main/java/com/thatgravyboat/skyblockhud/textures')
-rw-r--r-- | src/main/java/com/thatgravyboat/skyblockhud/textures/TextureObject.java | 12 |
1 files changed, 5 insertions, 7 deletions
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; } |