I found a bug making a mod in MultistageBuild Script with drainable items.
When set drainable items in ItemsRequired string.
Ex: ItemsRequired:Base.Brick=9;Base.PaintWhite=1;Base.PaintBrown=1,
ContextMenu not becomes red if you don't have drainable item required, allowing the construction of that object. Also tooltip displays in red if you have 1/1 uses.
How to fix it?
IsBuildMenu.lua
The drainable item string in red when 1/1 uses
line 84: (need equals)
if drainable and drainable:getRemainingUses() >= tonumber(v) then
The drainable validation.
Insert after line 91:
91 tooltip.description = tooltip.description .. " <RGB:1,0,0> " .. item:getName() .. " " .. useLeft .. "/" .. v .. " <LINE> "; 92 notAvailable = true;