From 43019ccb285e5e5af527580deb34056a18f84d44 Mon Sep 17 00:00:00 2001 From: Bella Date: Tue, 3 Mar 2020 09:44:12 -0500 Subject: [PATCH] cleanup code and refactor xcarry --- .../kami/module/modules/misc/XCarry | 20 ------------------- .../kami/module/modules/misc/XCarry.java | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 src/main/java/me/zeroeightsix/kami/module/modules/misc/XCarry create mode 100644 src/main/java/me/zeroeightsix/kami/module/modules/misc/XCarry.java diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/misc/XCarry b/src/main/java/me/zeroeightsix/kami/module/modules/misc/XCarry deleted file mode 100644 index 6f126d7e..00000000 --- a/src/main/java/me/zeroeightsix/kami/module/modules/misc/XCarry +++ /dev/null @@ -1,20 +0,0 @@ -package me.zeroeightsix.kami.module.modules.misc; - -import me.zero.alpine.listener.EventHandler; -import me.zero.alpine.listener.Listener; -import me.zeroeightsix.kami.event.events.PacketEvent; -import me.zeroeightsix.kami.module.Module; -import net.minecraft.network.play.client.CPacketCloseWindow; - -@Module.Info(name = "XCarry", category = Module.Category.MISC, description = "Store items in crafting slots") -public class XCarry extends Module { - - @EventHandler - private Listener listener = new Listener<>(event -> { - if(event.getPacket() instanceof CPacketCloseWindow) { - event.cancel(); - } - - }); - -} diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/misc/XCarry.java b/src/main/java/me/zeroeightsix/kami/module/modules/misc/XCarry.java new file mode 100644 index 00000000..56c9a79a --- /dev/null +++ b/src/main/java/me/zeroeightsix/kami/module/modules/misc/XCarry.java @@ -0,0 +1,20 @@ +package me.zeroeightsix.kami.module.modules.misc; + +import me.zero.alpine.listener.EventHandler; +import me.zero.alpine.listener.Listener; +import me.zeroeightsix.kami.event.events.PacketEvent; +import me.zeroeightsix.kami.module.Module; +import net.minecraft.network.play.client.CPacketCloseWindow; + +/** + * @author Hamburger2k + */ +@Module.Info(name = "XCarry", category = Module.Category.PLAYER, description = "Store items in crafting slots", showOnArray = Module.ShowOnArray.OFF) +public class XCarry extends Module { + @EventHandler + private Listener l = new Listener<>(event -> { + if (event.getPacket() instanceof CPacketCloseWindow) { + event.cancel(); + } + }); +}