mirror of https://github.com/kami-blue/client
Create XCarry (#485)
This commit is contained in:
parent
c6cbea8233
commit
3ef521fc9e
|
@ -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;
|
||||
|
||||
@Module.Info(name = "XCarry", category = Module.Category.MISC, description = "Store items in crafting slots")
|
||||
public class XCarry extends Module {
|
||||
|
||||
@EventHandler
|
||||
private Listener<PacketEvent.Send> listener = new Listener<>(event -> {
|
||||
if(event.getPacket() instanceof CPacketCloseWindow) {
|
||||
event.cancel();
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
Loading…
Reference in New Issue