diff --git a/Client/src/main/java/de/com/baseband/client/feature/modules/experimental/InventoryUtils.java b/Client/src/main/java/de/com/baseband/client/feature/modules/experimental/InventoryUtils.java new file mode 100644 index 0000000..d6923cc --- /dev/null +++ b/Client/src/main/java/de/com/baseband/client/feature/modules/experimental/InventoryUtils.java @@ -0,0 +1,26 @@ +package de.com.baseband.client.feature.modules.experimental; + +import de.com.baseband.client.event.events.PacketEvent; +import de.com.baseband.client.feature.Feature; +import de.com.baseband.client.feature.category.Experimental; +import de.com.baseband.client.registry.annotation.Config; +import de.com.baseband.client.registry.annotation.Description; +import net.minecraft.network.play.client.CPacketCloseWindow; + +@Experimental +public class InventoryUtils extends Feature { + + @Config("XCarry") + @Description("Allows you to put stuff into your crafting slots!") + public boolean xCarry = false; + + public void onPacket(PacketEvent.Send event) { + if(xCarry && event.getPacket() instanceof CPacketCloseWindow) + event.setCancelled(true); + } + + @Override + public String toString() { + return "InventoryUtils"; + } +}