From d5f461200c0eda0eebcf2f158c7daddf7835ea70 Mon Sep 17 00:00:00 2001 From: Bella Date: Thu, 19 Mar 2020 13:35:53 -0400 Subject: [PATCH] code cleanup and remove unused instance in betterbeacons --- .../kami/module/modules/misc/BetterBeacons.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/misc/BetterBeacons.java b/src/main/java/me/zeroeightsix/kami/module/modules/misc/BetterBeacons.java index 22a42056..ed94dde8 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/misc/BetterBeacons.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/misc/BetterBeacons.java @@ -19,11 +19,6 @@ import net.minecraft.network.play.client.CPacketCustomPayload; */ @Module.Info(name = "BetterBeacons", category = Module.Category.MISC, description = "Choose any of the 5 beacon effects regardless of beacon base height") public class BetterBeacons extends Module { - - private static BetterBeacons INSTANCE = new BetterBeacons(); - public static boolean enabled() { return INSTANCE.isEnabled(); } - public BetterBeacons() { INSTANCE = this; } - private Setting effects = register(Settings.e("Effect", Effects.SPEED)); private boolean doCancelPacket = true; @@ -47,6 +42,8 @@ public class BetterBeacons extends Module { doCancelPacket = false; PacketBuffer data = ((CPacketCustomPayload) event.getPacket()).getBufferData(); + /* i1 is actually not unused, reading the int discards the bytes it read, allowing k1 to read the next bytes */ + @SuppressWarnings("unused") int i1 = data.readInt(); // primary int k1 = data.readInt(); // secondary