About
Maid Restaurant: Fix is a bug-fix and compatibility addon for Maid Restaurant. It does not modify the base mod files and adds no blocks or items; every change is implemented through Mixins. It resolves cooking crashes and incorrect states, and adds quality-of-life features to the ordering menu.
Requirements
Required: Maid Restaurant, Touhou Little Maid
Optional: Kaleidoscope Cookery, Just Enough Characters
Fixes & Features
Crash fixes
Stockpot no-container crash: Recipes that need no container item (such as pan-fried buns) caused an index-out-of-bounds or null-pointer crash because the base mod accessed an empty container. The addon guards the cooking logic and takes the finished product directly while preserving the original lid-open-then-takeout timing.
Cooking exception guard: Exceptions raised during cooking are caught and logged (rate-limited) instead of propagating into the maid's behavior system, preventing corrupted AI states and requests stuck on completed dishes.
Bakeries oven compatibility (Forge 1.20.1 only): Newer Bakeries builds renamed the oven temperature getter, so the base mod hit a NoSuchMethodError and could not set the oven temperature. A reflection-based call supports both old and new Bakeries versions and restores temperature control.
State handling
Cooking-state fallback: When reading the current ingredients fails, the addon reads the ingredients and soup base directly from the stockpot block entity, so the maid is correctly recognized as cooking rather than returning to the storage state.
Resume cooking after relog: The cooking station position is saved with the request when the task starts. After the world loads, the block occupation and working memories are rebuilt so the maid resumes the unfinished cooking. If the station was removed or is no longer valid, the record is cleared and normal recipe search takes over.
Recipe handling
Alternative recipes for the same product: When the current recipe is missing ingredients, the addon searches for other recipes that produce the same item at the same count and tries up to three of them, so a single missing variant no longer blocks cooking. For example, fried eggs can be made from chicken eggs or turtle eggs.
Ordering menu
Deduplication: Multiple quantity entries of the same item are merged to the preferred counts 1, 4, and 9. If none match, only the smallest and largest quantities are kept, reducing clutter.
Pinyin search (optional): With Just Enough Characters installed, Chinese dish names can be searched using full pinyin or initials. Without it, the menu falls back to plain text matching.
Compatibility
The same feature set is available on Minecraft Forge 1.20.1 and NeoForge 1.21.1.
Licensed under GNU GPL v3.
---
中文描述
简介
女仆餐厅:修复(Maid Restaurant: Fix)是女仆餐厅的修复与兼容附属。模组不改动女仆餐厅本体,也不新增任何方块或物品,全部功能通过 Mixin 实现,用于解决烹饪过程中的崩溃与状态异常,并为点餐菜单补充实用功能。
依赖
必需:女仆餐厅(Maid Restaurant)、车万女仆(Touhou Little Maid)
可选:森罗物语:厨房(Kaleidoscope Cookery)、Just Enough Characters
修复与功能
崩溃修复
汤锅无容器配方崩溃: 女仆烹饪水煎包等不需要容器的汤锅配方时,本体访问空容器会导致数组越界或空指针崩溃。模组在烹饪逻辑中加入检查,对无容器配方直接取出成品,并保持先打开锅盖、再取出成品的原有节奏。
烹饪异常保护: 烹饪过程中抛出的异常会被拦截并记录,不再向上击穿女仆的行为系统,避免女仆 AI 状态崩溃,以及烹饪请求卡在已完成菜品无法继续。
烘焙坊烤箱兼容(仅 Forge 1.20.1 端): 新版烘焙坊(Bakeries)调整了烤箱温度取值方法的名称,本体调用旧方法会触发 NoSuchMethodError,烤箱食谱无法自动调温。模组通过反射同时兼容新旧版本的烘焙坊,恢复温度调节。
状态判定
烹饪状态判定兜底: 读取锅中材料的方法异常时,改为直接从汤锅方块实体读取已投入的材料与汤底,保证女仆被正确判定为烹饪中,而不是错误地回到寻找材料的状态。
重进游戏后恢复烹饪进度: 任务开始时记录所用厨具的位置并随存档保存;世界加载后重建厨具占用与工作记忆,使女仆能够继续未完成的烹饪。若厨具已被拆除或失效,则清除记录并交由正常的搜索流程重新选择。
配方处理
同产物多配方替代: 当前配方所需材料不足时,会自动寻找产出相同(同一物品、相同数量)的其他配方并尝试,最多尝试 3 个,避免只因一种替代材料缺失就无法烹饪。例如煎蛋可使用鸡蛋或海龟蛋。
点餐菜单
菜单去重: 同一物品的不同数量条目合并为 1、4、9 三个首选数量;若没有匹配的首选数量,则保留最小与最大数量,减少菜单冗余。
拼音搜索(可选): 安装 Just Enough Characters 后,可在点餐菜单使用全拼或声母组合搜索中文菜名;未安装时自动降级为原版文字匹配,行为不变。
兼容性
同一套功能同时支持 Minecraft Forge 1.20.1 与 NeoForge 1.21.1。
采用 GNU GPL v3 开源协议。