package nivia.modules.exploits;

import net.minecraft.network.play.client.C0DPacketCloseWindow;
import nivia.events.EventTarget;
import nivia.events.events.EventPacketSend;
import nivia.modules.Module;

public class InventoryPlus extends Module {
	public InventoryPlus() {
		super("Inventory+", 0, 0xFFFFFF, Category.EXPLOITS,
				"Prevents items from falling out your crafting spots in your inventory when closing",
				new String[] { "inv+", "xcarry", "moreinventory", "i+", "mi" }, true);
	}

	@EventTarget
	public void onSent(EventPacketSend sent) {
		if (sent.getPacket() instanceof C0DPacketCloseWindow) {
			sent.setCancelled(true);
		}
	}
}
