Skip to main content

REPOS_UNPLACED

Constant REPOS_UNPLACED 

Source
pub const REPOS_UNPLACED: u8 = 0xFF;
Expand description

The inventory-grid position an item that has never been placed holds.

Repos_PosX and Repos_Posy are BYTEs read only by the nested container path, and both default to 0xFF rather than to a plain zero. Grid slot 0 is a real slot, so a zero fallback places every unplaced item in the top-left corner.