InvTweaksConfig config = cfgManager.getConfig();
boolean isValidChest = isValidChest(guiScreen);
if (isValidChest || (isStandardInventory(guiScreen) && !isGuiEnchantmentTable(guiScreen))) {
GuiContainer guiContainer = asGuiContainer(guiScreen);
int w = 10, h = 10;
// Look for the mods buttons
boolean customButtonsAdded = false;
List<Object> controlList = getControlList(guiScreen);