From 5f181dd9fcb03a9cee1137bfcd11e38e81518ec4 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Sat, 15 Jun 2024 12:07:23 +0200 Subject: [PATCH] fix warnings --- .../de/com/baseband/client/feature/modules/chat/PvpInfo.java | 2 +- .../de/com/baseband/client/feature/modules/world/FastBreak.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/chat/PvpInfo.java b/Client/src/main/java/de/com/baseband/client/feature/modules/chat/PvpInfo.java index 612dcec..c56aef5 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/chat/PvpInfo.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/chat/PvpInfo.java @@ -15,7 +15,7 @@ public class PvpInfo extends Feature { private final ArrayList names = new ArrayList<>(); private final ArrayList newnames = new ArrayList<>(); - private HashMap popList = new HashMap<>(); + private final HashMap popList = new HashMap<>(); @Config("Totem Pops") public boolean totemPops; diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/world/FastBreak.java b/Client/src/main/java/de/com/baseband/client/feature/modules/world/FastBreak.java index d83449a..f5d89c3 100644 --- a/Client/src/main/java/de/com/baseband/client/feature/modules/world/FastBreak.java +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/world/FastBreak.java @@ -63,6 +63,6 @@ public class FastBreak extends Feature { } private boolean isNotUnbreakable(BlockPos pos) { - return mc.world.getBlockState(pos).getBlock().getBlockHardness(mc.world.getBlockState(pos), Minecraft.getMinecraft().world, pos) != -1; + return mc.world.getBlockState(pos).getBlockHardness(Minecraft.getMinecraft().world, pos) != -1; } }