# Villager Imprisonment Fix
A lightweight compatibility patch for **Industrial Foregoing** that restores the expected behavior of the **Mob Imprisonment Tool** when interacting with villagers.
## What does this fix?
On Forge **1.20.1** with Industrial Foregoing **3.5.22**, the Mob Imprisonment Tool cannot capture:
- Villagers
- Wandering Traders
Instead, Minecraft opens the trading GUI before Industrial Foregoing receives the interaction.
This mod fixes that issue.
When the player:
- Sneaks (Shift)
- Holds an empty Mob Imprisonment Tool
- Right-clicks a Villager or Wandering Trader
the entity is captured normally using Industrial Foregoing's own capture logic, without opening the trading interface.
## Features
✔ Uses Industrial Foregoing's original capture implementation
✔ No duplicated NBT logic
✔ No Mixins
✔ No ASM
✔ No Coremods
✔ Lightweight
✔ Server and client compatible
✔ Configurable
## Configuration
The generated configuration file allows enabling or disabling support for:
- Villagers
- Wandering Traders
- Sneak requirement
## Requirements
- Minecraft 1.20.1
- Forge 47.x
- Industrial Foregoing 3.5.22 or compatible
## Compatibility
This mod only changes interactions with:
- Villager
- Wandering Trader
All other entities continue to behave exactly as Industrial Foregoing intends.
## Source
This project is an independent compatibility patch.
It does **not** include Industrial Foregoing code or assets.
Industrial Foregoing remains a required dependency.