From 5293427da948c431dd92d2a9faca73baee1c6c96 Mon Sep 17 00:00:00 2001 From: Alexander01998 Date: Sun, 24 Mar 2024 02:06:40 +0100 Subject: [PATCH] Update Formatter and Clean Up settings for Eclipse 2024-03 --- codestyle/cleanup.xml | 259 +++++++++--------- codestyle/formatter.xml | 3 + .../wurstclient/hacks/AutoLibrarianHack.java | 2 +- 3 files changed, 135 insertions(+), 129 deletions(-) diff --git a/codestyle/cleanup.xml b/codestyle/cleanup.xml index 70a36773..a6aa8d3e 100644 --- a/codestyle/cleanup.xml +++ b/codestyle/cleanup.xml @@ -1,144 +1,147 @@ - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/codestyle/formatter.xml b/codestyle/formatter.xml index b44984ad..3c2ecb64 100644 --- a/codestyle/formatter.xml +++ b/codestyle/formatter.xml @@ -200,6 +200,7 @@ + @@ -280,6 +281,7 @@ + @@ -310,6 +312,7 @@ + diff --git a/src/main/java/net/wurstclient/hacks/AutoLibrarianHack.java b/src/main/java/net/wurstclient/hacks/AutoLibrarianHack.java index 0f1345be..2f49d3c2 100644 --- a/src/main/java/net/wurstclient/hacks/AutoLibrarianHack.java +++ b/src/main/java/net/wurstclient/hacks/AutoLibrarianHack.java @@ -418,7 +418,7 @@ public final class AutoLibrarianHack extends Hack for(TradeOffer tradeOffer : tradeOffers) { ItemStack stack = tradeOffer.getSellItem(); - if(!(stack.getItem() instanceof EnchantedBookItem book)) + if(!(stack.getItem() instanceof EnchantedBookItem)) continue; NbtList enchantmentNbt = EnchantedBookItem.getEnchantmentNbt(stack);