Fix sensor range check
Mark chunk as modified when ticket machine inventory changes