fix: nullability and various issues reported by the IDE (#1118)

fix: GlowInventory#setItem now creates a copy
24 files changed